/[MITgcm]/MITgcm_contrib/test_scripts/ref_machine/test_batsi
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/ref_machine/test_batsi

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

revision 1.6 by jmc, Wed Sep 18 16:01:21 2019 UTC revision 1.14 by jmc, Sun Dec 6 15:43:14 2020 UTC
# Line 18  export LC_ALL="en_US.UTF-8" Line 18  export LC_ALL="en_US.UTF-8"
18  #  Turn off stack limit for FIZHI & AD-tests  #  Turn off stack limit for FIZHI & AD-tests
19  ulimit -s unlimited  ulimit -s unlimited
20  #  MPI test (for now, only with gfortran)  #  MPI test (for now, only with gfortran)
21  # source $HOME/bin/openmpi.sh    source $HOME/bin/openmpi.sh
22    
23  #- method to access CVS:  #- method to access CVS:
24    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'
# Line 198  do Line 198  do
198    if test $typ = 'mpi' ; then    if test $typ = 'mpi' ; then
199      addExp="offline_cheapaml atm_gray atm_strato"      addExp="offline_cheapaml atm_gray atm_strato"
200    fi    fi
   if test $typ = 'gfo' -o $typ = 'ifc' -o $typ = 'mpa' ; then  
     addExp="$addExp global_oce_biogeo_bling"  
   fi  
201    if test $typ = 'gfo' -o $typ = 'ifc' ; then    if test $typ = 'gfo' -o $typ = 'ifc' ; then
202      addExp="$addExp shelfice_remeshing"      addExp="$addExp shelfice_remeshing"
203    fi    fi
204    if test $typ = 'mpi' ; then    if test $typ = 'mpi' ; then
205      addExp="$addExp global_ocean.gm_k3d"      addExp="$addExp global_ocean.gm_k3d"
206        addExp="$addExp global_ocean.gm_res"
207      addExp="$addExp global_oce_cs32"      addExp="$addExp global_oce_cs32"
208    fi    fi
209    #- check day and time:    #- check day and time:
# Line 305  do Line 303  do
303          ( cd verification ;  ln -s ../$git_other/$exp2add . )          ( cd verification ;  ln -s ../$git_other/$exp2add . )
304          if test $exp2add = 'global_oce_cs32' ; then          if test $exp2add = 'global_oce_cs32' ; then
305            echo "      link dir 'other_input/core2_cnyf' in here"        | tee -a $tdir/output_$tt            echo "      link dir 'other_input/core2_cnyf' in here"        | tee -a $tdir/output_$tt
306            ( cd verification/${exp2add}            ( cd ${git_other}/${exp2add}
307              ln -s ../../../other_input/core2_cnyf . )              ln -s ../../../other_input/core2_cnyf . )
308          fi          fi
309         #if test $exp2add = 'shelfice_remeshing' ; then         #if test $exp2add = 'shelfice_remeshing' ; then
# Line 340  do Line 338  do
338    MPI=0    MPI=0
339    case $typ in    case $typ in
340     'g77'|'g7a')         OPTFILE='../tools/build_options/linux_amd64_g77' ;;     'g77'|'g7a')         OPTFILE='../tools/build_options/linux_amd64_g77' ;;
341     'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -match $MC -devel"     'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -devel"
342                            #comm="$comm -match $MC"
343                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;
344     'ifc')               comm="$comm -devel"     'ifc')               comm="$comm -devel"
345                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;
346     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;
347     'mpa'|'mpi'|'mp2')   comm="$comm -match $MC -devel" ; MPI=8     'mpa'|'mpi'|'mp2')   comm="$comm -devel"
348                            if test $typ = 'mp2' ; then MPI=3 ; else MPI=8 ; fi
349                            #comm="$comm -match $MC"
350                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;
351         *)               OPTFILE= ;;         *)               OPTFILE= ;;
352    esac    esac
353  #-- set MPI command:    if test $typ = 'g7a' ; then
354    if test $MPI != 0 ; then      #- pkg/ecco does not compile with g77 + no NetCDF here => no pkg/profiles
355      if test $typ = 'mp2' ; then MPI=3 ; fi      comm="$comm -skd global_oce_biogeo_bling"
     if test $typ = 'mpa' ; then  
       EXE="mpirun -np TR_NPROC ./mitgcmuv_ad"  
     else  
       EXE="mpirun -np TR_NPROC ./mitgcmuv"  
     fi  
356    fi    fi
357    #-- set MPI command: Use default (Dec 2020) which is the same since testreport update on Sep 2013
358  #-- set specific Env Vars:  #-- set specific Env Vars:
359    if test $typ = 'oad' ; then    if test $typ = 'oad' ; then
360      #- for some reasons, "source ScriptFile | tee -a LogFile"      #- for some reasons, "source ScriptFile | tee -a LogFile"
# Line 391  do Line 387  do
387    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
388      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
389    fi    fi
390    if test $MPI = 0 ; then  echo ''      | tee -a $tdir/output_$tt    echo ''                               | tee -a $tdir/output_$tt
391    else echo " (EXE='$EXE')"             | tee -a $tdir/output_$tt    if test $MPI != 0 ; then comm="$comm -MPI $MPI" ; fi
     comm="$comm -MPI $MPI -command \"\$EXE\""  
   fi  
392    if test "x$option" != x ; then comm="$comm $option" ; fi    if test "x$option" != x ; then comm="$comm $option" ; fi
393   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi
394    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt
# Line 413  do Line 407  do
407        echo "======================"        echo "======================"
408        $comm >> $tdir/output_$tt 2>&1        $comm >> $tdir/output_$tt 2>&1
409      else      else
410        echo "  \"$comm -mpi -exe $EXE\"" | tee -a $tdir/output_$tt        echo "  \"$comm -mpi\""           | tee -a $tdir/output_$tt
411        echo "======================"        echo "======================"
412        $comm -mpi -exe "$EXE" >> $tdir/output_$tt 2>&1        $comm -mpi >> $tdir/output_$tt 2>&1
413      fi      fi
414      echo ; cat tst_2+2_out.txt      echo ; cat tst_2+2_out.txt
415      echo      echo

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22