#!/bin/bash # #PBS -q four #PBS -N eh3_g77 #PBS -l nodes=2:ppn=1 #PBS -e /home/edhill/test_outp/eh3_gnu.stderr #PBS -o /home/edhill/test_outp/eh3_gnu.stdout #PBS -V if test -f /etc/profile.d/modules.sh ; then . /etc/profile.d/modules.sh fi module add mpich/gnu HERE='/home/edhill/test_outp' cd $HERE FC=g77 RUNIT=$HERE"/runit_"$FC MF=$HERE"/mf_"$FC cat $PBS_NODEFILE > $MF NCPU=`wc -l $MF | awk '{print $1}'` EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv" cat << EOF > $RUNIT #!/bin/bash $EXE cp STDOUT.0000 output.txt EOF chmod a+x $RUNIT # cat << EOF > $HERE"/.cvspass" # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah /dev/null 2>&1 # cvs co MITgcm cd MITgcm/verification OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_itrda" # ./testreport -j 2 -mpi -of $OPTFILE -command $RUNIT -a 'edhill@mitgcm.org' ./testreport -j 2 -mpi -of $OPTFILE -command $RUNIT