/[MITgcm]/MITgcm/tools/example_scripts/csail/test_baudelaire
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/csail/test_baudelaire

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7 by jmc, Mon Jan 24 14:30:36 2011 UTC revision 1.8 by jmc, Thu Jan 27 01:30:28 2011 UTC
# Line 132  do Line 132  do
132     'ifc')               OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;     'ifc')               OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;
133     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;
134     'mpa'|'mpi'|'mp2')   OPTFILE='../tools/build_options/linux_amd64_gfortran+mpi_generic'     'mpa'|'mpi'|'mp2')   OPTFILE='../tools/build_options/linux_amd64_gfortran+mpi_generic'
135                          comm="$comm -match $MC" ; MPI=1 ;;                          comm="$comm -match $MC" ; MPI=6 ;;
136         *)               OPTFILE= ;;         *)               OPTFILE= ;;
137    esac    esac
138  #-- set MPI command:  #-- set MPI command:
139    if test $MPI = 1 ; then    if test $MPI != 0 ; then
140        if test $typ = 'mp2' ; then MPI=3 ; fi
141      if test $typ = 'mpa' ; then      if test $typ = 'mpa' ; then
142        EXE="mpirun -np TR_NPROC ./mitgcmuv_ad"        EXE="mpirun -np TR_NPROC ./mitgcmuv_ad"
143      else      else
# Line 149  do Line 150  do
150      source /srv/software/intel/intel-11.1.073/bin/ifortvars.sh intel64      source /srv/software/intel/intel-11.1.073/bin/ifortvars.sh intel64
151    fi    fi
152    if test $typ = 'pgi' ; then    if test $typ = 'pgi' ; then
153       #listT='fizhi-cs-32x32x40 fizhi-cs-aqualev20'
154      export PGI=/srv/software/pgi/pgi-10.9      export PGI=/srv/software/pgi/pgi-10.9
155      export PATH="$PATH:$PGI/linux86-64/10.9/bin"      export PATH="$PATH:$PGI/linux86-64/10.9/bin"
156      export LM_LICENSE_FILE=$PGI/license.dat      export LM_LICENSE_FILE=$PGI/license.dat
# Line 170  do Line 172  do
172    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
173      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
174    fi    fi
175    if test $MPI = 1 ; then echo " (EXE='$EXE')"    if test $MPI = 0 ; then  echo ''
176      comm="$comm -MPI 6 -command \"\$EXE\""    else echo " (EXE='$EXE')"
177    else echo '' ; fi      comm="$comm -MPI $MPI -command \"\$EXE\""
178      fi
179    if test "x$option" != x ; then comm="$comm $option" ; fi    if test "x$option" != x ; then comm="$comm $option" ; fi
180   #if test $typ = 'pgi' ; then comm="$comm -skd tutorial_advection_in_gyre" ; fi   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi
181    echo "  \"eval $comm\""    echo "  \"eval $comm\""
182    echo "======================"    echo "======================"
183    eval $comm > $tdir/output_$typ 2>&1    eval $comm > $tdir/output_$typ 2>&1
# Line 186  do Line 189  do
189    then    then
190      echo "testing restart using:"      echo "testing restart using:"
191      comm="../tools/do_tst_2+2 -a jmc@mitgcm.org"      comm="../tools/do_tst_2+2 -a jmc@mitgcm.org"
192      if test $MPI = 1 ; then      if test $MPI = 0 ; then
       echo "  \"$comm -mpi -exe $EXE\""  
       echo "======================"  
       $comm -mpi -exe "$EXE" > $tdir/output_2+2 2>&1  
     else  
193        echo "  \"$comm\""        echo "  \"$comm\""
194        echo "======================"        echo "======================"
195        $comm > $tdir/output_2+2 2>&1        $comm > $tdir/output_2+2 2>&1
196        else
197          echo "  \"$comm -mpi -exe $EXE\""
198          echo "======================"
199          $comm -mpi -exe "$EXE" > $tdir/output_2+2 2>&1
200      fi      fi
201     #tail $nbl $tdir/output_2+2     #tail $nbl $tdir/output_2+2
202      echo ; cat tst_2+2_out.txt      echo ; cat tst_2+2_out.txt

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22