199 |
addExp="$addExp global_oce_cs32" |
addExp="$addExp global_oce_cs32" |
200 |
addExp="$addExp global_oce_llc90" |
addExp="$addExp global_oce_llc90" |
201 |
fi |
fi |
202 |
|
if test $typ = 'mpa' ; then |
203 |
|
addExp="$addExp global_oce_cs32" |
204 |
|
fi |
205 |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
206 |
addExp="$addExp shelfice_remeshing" |
addExp="$addExp shelfice_remeshing" |
207 |
fi |
fi |
361 |
'ifc') comm="$comm -devel" |
'ifc') comm="$comm -devel" |
362 |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
363 |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
364 |
'mpa'|'mpi'|'mp2') comm="$comm -devel" ; MPI=8 |
'mpa'|'mpi'|'mp2') comm="$comm -devel" |
365 |
|
if test $typ = 'mp2' ; then MPI=3 ; else MPI=8 ; fi |
366 |
comm="$comm -match $MC" |
comm="$comm -match $MC" |
367 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
368 |
*) OPTFILE= ;; |
*) OPTFILE= ;; |
369 |
esac |
esac |
370 |
#-- set MPI command: |
#-- set MPI command: Use default (Dec 2020) which is the same since testreport update on Sep 2013 |
|
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 |
|
|
|
|
371 |
#-- set specific Env Vars: |
#-- set specific Env Vars: |
372 |
if test $typ = 'oad' ; then |
if test $typ = 'oad' ; then |
373 |
#- for some reasons, "source ScriptFile | tee -a LogFile" |
#- for some reasons, "source ScriptFile | tee -a LogFile" |
400 |
if test "x$OPTFILE" != x ; then |
if test "x$OPTFILE" != x ; then |
401 |
comm="$comm -of=$OPTFILE" |
comm="$comm -of=$OPTFILE" |
402 |
fi |
fi |
403 |
if test $MPI = 0 ; then echo '' | tee -a $tdir/output_$tt |
echo '' | tee -a $tdir/output_$tt |
404 |
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 |
|
405 |
if test "x$option" != x ; then comm="$comm $option" ; fi |
if test "x$option" != x ; then comm="$comm $option" ; fi |
406 |
#if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi |
#if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi |
407 |
echo " \"eval $comm\"" | tee -a $tdir/output_$tt |
echo " \"eval $comm\"" | tee -a $tdir/output_$tt |
420 |
echo "======================" |
echo "======================" |
421 |
$comm >> $tdir/output_$tt 2>&1 |
$comm >> $tdir/output_$tt 2>&1 |
422 |
else |
else |
423 |
echo " \"$comm -mpi -exe $EXE\"" | tee -a $tdir/output_$tt |
echo " \"$comm -mpi\"" | tee -a $tdir/output_$tt |
424 |
echo "======================" |
echo "======================" |
425 |
$comm -mpi -exe "$EXE" >> $tdir/output_$tt 2>&1 |
$comm -mpi >> $tdir/output_$tt 2>&1 |
426 |
fi |
fi |
427 |
echo ; cat tst_2+2_out.txt |
echo ; cat tst_2+2_out.txt |
428 |
echo |
echo |