/[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.15 by jmc, Wed Feb 17 16:51:57 2021 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 344  do Line 342  do
342     'ifc')               comm="$comm -devel"     'ifc')               comm="$comm -devel"
343                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;                          OPTFILE='../tools/build_options/linux_amd64_ifort11' ;;
344     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;     'pgi')               OPTFILE='../tools/build_options/linux_amd64_pgf77' ;;
345     'mpa'|'mpi'|'mp2')   comm="$comm -match $MC -devel" ; MPI=8     'mpa'|'mpi'|'mp2')   comm="$comm -devel"
346                            if test $typ = 'mp2' ; then MPI=3 ; else MPI=8 ; fi
347                            #comm="$comm -match $MC"
348                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;                          OPTFILE='../tools/build_options/linux_amd64_gfortran' ;;
349         *)               OPTFILE= ;;         *)               OPTFILE= ;;
350    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  
351    if test $typ = 'g7a' ; then    if test $typ = 'g7a' ; then
352      #- 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
353      comm="$comm -skd global_oce_biogeo_bling"      comm="$comm -skd global_oce_biogeo_bling"
354    fi    fi
355    #-- set MPI command: Use default (Dec 2020) which is the same since testreport update on Sep 2013
356  #-- set specific Env Vars:  #-- set specific Env Vars:
357    if test $typ = 'oad' ; then    if test $typ = 'oad' ; then
358      #- for some reasons, "source ScriptFile | tee -a LogFile"      #- for some reasons, "source ScriptFile | tee -a LogFile"
# Line 394  do Line 385  do
385    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
386      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
387    fi    fi
388    if test $MPI = 0 ; then  echo ''      | tee -a $tdir/output_$tt    echo ''                               | tee -a $tdir/output_$tt
389    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  
390    if test "x$option" != x ; then comm="$comm $option" ; fi    if test "x$option" != x ; then comm="$comm $option" ; fi
391   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi   #if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi
392    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt    echo "  \"eval $comm\""               | tee -a $tdir/output_$tt
# Line 416  do Line 405  do
405        echo "======================"        echo "======================"
406        $comm >> $tdir/output_$tt 2>&1        $comm >> $tdir/output_$tt 2>&1
407      else      else
408        echo "  \"$comm -mpi -exe $EXE\"" | tee -a $tdir/output_$tt        echo "  \"$comm -mpi\""           | tee -a $tdir/output_$tt
409        echo "======================"        echo "======================"
410        $comm -mpi -exe "$EXE" >> $tdir/output_$tt 2>&1        $comm -mpi >> $tdir/output_$tt 2>&1
411      fi      fi
412      echo ; cat tst_2+2_out.txt      echo ; cat tst_2+2_out.txt
413      echo      echo

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

  ViewVC Help
Powered by ViewVC 1.1.22