main_parallel.xml
<?xml version="1.0" ?>
<!-- Sample XML Job File -->
<job>
<nodes>16</nodes>
<minutes>90</minutes>
<type>batch</type>
<affiliation>v2</affiliation>
<run>\\tc.cornell.edu\tc\users\your_userid\main_parallel.bat</run>
</job>

main_parallel.bat
set NODES=16
set PROCS=32
 
set ROOTDIR=\\tc.cornell.edu\tc\users\%USERNAME%\jobs
set OUTDIR=\\tc.cornell.edu\tc\users\%USERNAME%\output\out_%NODES%_%PROCS%_31may2006_%COMPUTERNAME%
 
mkdir %OUTDIR%
 
REM sleep for a specified time. Then periodically copy files from T: to H:.
start /b %ROOTDIR%\copyback.bat

 
set MPI_COMM=TCP
 
REM Work on the local drive T:.
REM Create the machines file in T:\ and run the setup script.
REM The setup script creates T:\%USERNAME% if it does not exist.
REM If T:\%USERNAME% already exists, the setup deletes the files.
REM Move the machines file from T:\ to T:\%USERNAME% after the setup.
 
t:
cd \
vsched -m
 
mpirun -np  %NODES% %ROOTDIR%\setup.bat 1>%OUTDIR%\setup.out 2>%OUTDIR%\setup.err
 
cd t:\%USERNAME%
move t:\machines t:\%USERNAME%
copy /Y T:\%USERNAME%\machines %OUTDIR%
 
REM Run the executable, writing standard out and standard error to local disk.
mpirun -verbose -mpi_verbose -mpi_debug -np %PROCS% t:\%USERNAME%\my.exe 1>my.out 2>my.err
 
REM Kill off processes on each node and copy files from T: to H:.
mpirun -np %NODES%  %ROOTDIR%\cleanup.bat 1>%OUTDIR%\cleanup.out 2>%OUTDIR%\cleanup.err

 
vsched -c