/[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.12 by jmc, Sun Dec 22 17:24:42 2019 UTC revision 1.16 by jmc, Sun Dec 24 18:00:27 2023 UTC
# Line 51  option= Line 51  option=
51    
52  if test $tst_grp = 'a' ; then  if test $tst_grp = 'a' ; then
53   checkOut=2   checkOut=2
54  #tst_list='g7a mpa mth mp2+rs mpi oad'   tst_list=''
55   tst_list='mpa adm g7a mpi mth+rs gfo+rs g77'   tst_list="$tst_list mpa adm mpi"
56  #tst_list="$tst_list oad"   tst_list="$tst_list mth+rs gfo+rs"
57  else  else
58   checkOut=1   checkOut=1
59   tst_list='adm g77 gfo+rs ifc'   tst_list='adm g77 gfo+rs ifc'
# Line 197  do Line 197  do
197    addExp=''    addExp=''
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"
   fi  
   if test $typ = 'gfo' -o $typ = 'ifc' ; then  
     addExp="$addExp shelfice_remeshing"  
   fi  
   if test $typ = 'mpi' ; then  
200      addExp="$addExp global_ocean.gm_k3d"      addExp="$addExp global_ocean.gm_k3d"
201      addExp="$addExp global_ocean.gm_res"      addExp="$addExp global_ocean.gm_res"
202      addExp="$addExp global_oce_cs32"      addExp="$addExp global_oce_cs32"
203    fi    fi
204      if test $typ = 'gfo' -o $typ = 'ifc' ; then
205        addExp="$addExp shelfice_remeshing"
206      fi
207    #- check day and time:    #- check day and time:
208    curDay=`date +%d` ; curHour=`date +%H`    curDay=`date +%d` ; curHour=`date +%H`
209    if [ $curDay -ne $TODAY ] ; then    if [ $curDay -ne $TODAY ] ; then
# Line 308  do Line 306  do
306          fi          fi
307         #if test $exp2add = 'shelfice_remeshing' ; then         #if test $exp2add = 'shelfice_remeshing' ; then
308         #  echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt         #  echo " link dir 'other_input/remeshing_code' to 'extra_code'" | tee -a $tdir/output_$tt
309         #  ( cd verification/${exp2add}         #  ( cd ${git_other}/${exp2add}
310         #    ln -s ../../../other_input/remeshing_code extra_code )         #    ln -s ../../../other_input/remeshing_code extra_code )
311         #fi         #fi
312        done        done
# Line 321  do Line 319  do
319  #-- set the testreport command:  #-- set the testreport command:
320    comm="./testreport"    comm="./testreport"
321    if test $typ = 'g7a' -o  $typ = 'adm' -o  $typ = 'mpa' ; then    if test $typ = 'g7a' -o  $typ = 'adm' -o  $typ = 'mpa' ; then
322      comm="$comm -adm"     #comm="$comm -adm"
323        comm="$comm -adm -ncad"
324    elif test $typ = 'oad' ; then    elif test $typ = 'oad' ; then
325      comm="$comm -oad"      comm="$comm -oad"
326    elif test $typ = 'tlm' ; then    elif test $typ = 'tlm' ; then
# Line 344  do Line 343  do
343     'ifc')               comm="$comm -devel"     'ifc')               comm="$comm -devel"
344                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;
345     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;
346     'mpa'|'mpi'|'mp2')   comm="$comm -match $MC -devel" ; MPI=8     'mpa'|'mpi'|'mp2')   comm="$comm -devel"
347                            if test $typ = 'mp2' ; then MPI=3 ; else MPI=8 ; fi
348                            #comm="$comm -match $MC"
349                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;
350         *)               OPTFILE= ;;         *)               OPTFILE= ;;
351    esac    esac
 #-- set MPI command:  
   if test $MPI != 0 ; then  
     if test $typ = 'mp2' ; then MPI=3 ; fi  
     if test $typ = 'mpa' ; then  
       EXE="mpirun -np TR_NPROC ./mitgcmuv_ad"  
     else  
       EXE="mpirun -np TR_NPROC ./mitgcmuv"  
     fi  
   fi  
352    if test $typ = 'g7a' ; then    if test $typ = 'g7a' ; then
353      #- pkg/ecco does not compile with g77 + no NetCDF here => no pkg/profiles      #- pkg/ecco does not compile with g77 + no NetCDF here => no pkg/profiles
354      comm="$comm -skd global_oce_biogeo_bling"      comm="$comm -skd global_oce_biogeo_bling"
355    fi    fi
356    #-- set MPI command: Use default (Dec 2020) which is the same since testreport update on Sep 2013
357  #-- set specific Env Vars:  #-- set specific Env Vars:
358    if test $typ = 'oad' ; then    if test $typ = 'oad' ; then
359      #- for some reasons, "source ScriptFile | tee -a LogFile"      #- for some reasons, "source ScriptFile | tee -a LogFile"
# Line 394  do Line 386  do
386    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
387      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
388    fi    fi
389    if test $MPI = 0 ; then  echo ''      | tee -a $tdir/output_$tt    echo ''                               | tee -a $tdir/output_$tt
390    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  
391    if test "x$option" != x ; then comm="$comm $option" ; fi    if test "x$option" != x ; then comm="$comm $option" ; fi
392   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi
393    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt
# Line 416  do Line 406  do
406        echo "======================"        echo "======================"
407        $comm >> $tdir/output_$tt 2>&1        $comm >> $tdir/output_$tt 2>&1
408      else      else
409        echo "  \"$comm -mpi -exe $EXE\"" | tee -a $tdir/output_$tt        echo "  \"$comm -mpi\""           | tee -a $tdir/output_$tt
410        echo "======================"        echo "======================"
411        $comm -mpi -exe "$EXE" >> $tdir/output_$tt 2>&1        $comm -mpi >> $tdir/output_$tt 2>&1
412      fi      fi
413      echo ; cat tst_2+2_out.txt      echo ; cat tst_2+2_out.txt
414      echo      echo

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22