Running WIND with Torque
- A script file is not needed to run wind using Torque.
- You will use the runwind perl script file. The required options for the script are described below
-
You will need to add/edit your shell config file to update your PATH and other variables.
add the following line to your .bashrc file:
source /home/booster/scratch/aaewing/bash_wind_profile
add the following line to your .cshrc or .tcshrc file:
source /home/booster/scratch/aaewing/cshell_wind_profile
- BASH users
- CSH/TCSH users
runwind has the following options:
-a, -all |
This will use this file name for all file names
Using the other options will override this
All files will use the test file name except for the grid file, it will use the grid01 file name. |
-c, --case |
mpc file name, required unless -a, -all defined a script generated file for multiprocessor control
|
-d, --dat |
dat file name, required unless -a, -all defined
user created input file, |
-f, --flow |
flow file name, required unless -a, -all defined solution file generated by wind, this file name is also used for the solution restart file (.tda file) |
-g, --grid |
grid file name, required unless -a, -all defined user created input file, NAME.cgd |
-l, --list |
list file name, required unless -a, -all defined wind generated output file, NAME.lis |
-m, --maxtime |
maximum runtime in hours, default is 120 |
-n, --nodes |
number of nodes to use, default is 1 |
-p, --ppn |
number of processors per node to use, default is 1 |
-s, --solver |
solver to use: wind5 or Wind_US1, default is wind5 |
-h, --help, -? |
print this message |
A file named submit_wind_TIMESTAMP.sh will be created to submit your wind job to the queue. TIMESTAMP has the format: YYYYMMDD_HHMMSS. The runwind perl script will submit the job for you.
Example 1
I have the files testme.cgd and testme.dat. I want to use the Wind-US solver, I want to use 12 processors to run the job, and I want to set my maximum run time to be 7 days.
Finally, I want all of the wind generated output files to be testme.cfl, testme.tda, and testme.lis
runwind -a testme -n 3 -p 4 -s Wind_US1 -m 168
Notes
- 3 (nodes)*4 (processors per node) = 12 total CPUs
- The -a option means all of the files (*.dat, *.cgd, *.lis, *.cfl, and *.tda) will have the same name
Example 2
I have the files himom.cgd and hidad.dat. I want to use the Wind5 solver. I want to use 1 processor to run the job, and I will accept the default maximum runtime.
Finally, I want to have the output files be hi1.lis, hi2.cfl, hi3.mpc
Then I would type
runwind -d hidad -g himom -l hi1 -f hi2 -c hi3
Notes
- The default for the number of nodes and processors per node is 1.
- Default solver is wind5
- Default maximum runtime is 120
FYI
This is a dirty method. There should be a way to submit to torque using just the wind script, but what we have works.