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 |
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" |
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 |
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 |