/[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.13 by jmc, Mon Dec 23 18:57:47 2019 UTC revision 1.14 by jmc, Sun Dec 6 15:43:14 2020 UTC
# Line 344  do Line 344  do
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 -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"                          #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
 #-- 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  
353    if test $typ = 'g7a' ; then    if test $typ = 'g7a' ; then
354      #- 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
355      comm="$comm -skd global_oce_biogeo_bling"      comm="$comm -skd global_oce_biogeo_bling"
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 395  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 417  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.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22