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
move T:\machines T:\%USERNAME%\machines
cd /d T:\%USERNAME%
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