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