[GiDlist] Alternative Batch File

Hi,



I want to use an alternative batch file in case of a specific analysis
different from the normal problemtype analysis. I read the SelectGIDBatFile
{} {} procedure in the manual, but it doesn’t say when the procedure is
invoked. I tried adding proc SelectGIDBatFile {} {} in problemtype.tcl with
a return value for alternate file name, but the analysis proceeds without
the switch.



When is the procedure invoked and how to specify the different *.win.bat
file name?



Thanks,

-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20101119/69608168/attachment.htm

You can define this procedure inside your problemtype .tcl files, to specify a bat file depending on some data, like a ‘General data’ called Solver.

proc SelectGIDBatFile { dir basename } {
set solver [GiD_AccessValue get gendata Solver]
if { $solver == “Parallel” } {
set res YourSolver_Parallel.win.bat
} else {
set res YourSolver_Serial.win.bat
}
return $res
}
----- Original Message -----
From: Shriram
To: gidlist at listas.cimne.upc.edu
Sent: Friday, November 19, 2010 5:39 PM
Subject: [GiDlist] Alternative Batch File


Hi,



I want to use an alternative batch file in case of a specific analysis different from the normal problemtype analysis. I read the SelectGIDBatFile {} {} procedure in the manual, but it doesn’t say when the procedure is invoked. I tried adding proc SelectGIDBatFile {} {} in problemtype.tcl with a return value for alternate file name, but the analysis proceeds without the switch.



When is the procedure invoked and how to specify the different *.win.bat file name?



Thanks,


\


\


GiDlist mailing list
GiDlist at listas.cimne.upc.edu
http://listas.cimne.upc.edu/cgi-bin/mailman/listinfo/gidlist
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20101119/55c7b3f1/attachment.htm