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?
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?