set ROOTDIR=\\tc.cornell.edu\tc\users\%USERNAME%\
software\farm_out_workcd /D %ROOTDIR%
set MPI_COMM=TCP
set N=2
set NPROC=4
set OUTPUT=14Bsep2005_%COMPUTERNAME%
mkdir %ROOTDIR%\%OUTPUT%
set OUTDIR=%ROOTDIR%\%OUTPUT%
cd /D T:\
vsched -m
mpirun -np %N% %ROOTDIR%\setup.bat 1>%OUTDIR%\setup.out 2>%OUTDIR%\setup.err
REM next command periodically copy files from T: to the user folder on the fileserver, (H:) from all tasks.
start /b mpirun -np %NPROC% %ROOTDIR%\parallel_copyback.bat
move T:\machines T:\%USERNAME%\machines
cd /d T:\%USERNAME%
REM Next command incorporates job_limiter to affect a clean shutdown
REM of the job.
job_limiter 85500 mpirun -np %NPROC% farm_out_work.exe farm_out_work_commands.txt >stdout.out 2>stderr.err
copy /Y *.out %OUTDIR%
copy /Y *.err %OUTDIR%
vsched -c