| 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' |
| 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' -o $typ = 'mpa' ; then |
|
|
addExp="$addExp global_oce_biogeo_bling" |
|
|
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 |
| 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 |
| 319 |
#-- set the testreport command: |
#-- set the testreport command: |
| 320 |
comm="./testreport" |
comm="./testreport" |
| 321 |
if test $typ = 'g7a' -o $typ = 'adm' -o $typ = 'mpa' ; then |
if test $typ = 'g7a' -o $typ = 'adm' -o $typ = 'mpa' ; then |
| 322 |
comm="$comm -adm" |
#comm="$comm -adm" |
| 323 |
|
comm="$comm -adm -ncad" |
| 324 |
elif test $typ = 'oad' ; then |
elif test $typ = 'oad' ; then |
| 325 |
comm="$comm -oad" |
comm="$comm -oad" |
| 326 |
elif test $typ = 'tlm' ; then |
elif test $typ = 'tlm' ; then |
| 337 |
MPI=0 |
MPI=0 |
| 338 |
case $typ in |
case $typ in |
| 339 |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
| 340 |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -match $MC -devel" |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -devel" |
| 341 |
|
#comm="$comm -match $MC" |
| 342 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
| 343 |
'ifc') comm="$comm -devel" |
'ifc') comm="$comm -devel" |
| 344 |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
| 345 |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
| 346 |
'mpa'|'mpi'|'mp2') comm="$comm -match $MC -devel" ; MPI=8 |
'mpa'|'mpi'|'mp2') comm="$comm -devel" |
| 347 |
|
if test $typ = 'mp2' ; then MPI=3 ; else MPI=8 ; fi |
| 348 |
|
#comm="$comm -match $MC" |
| 349 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
| 350 |
*) OPTFILE= ;; |
*) OPTFILE= ;; |
| 351 |
esac |
esac |
| 352 |
#-- set MPI command: |
if test $typ = 'g7a' ; then |
| 353 |
if test $MPI != 0 ; then |
#- pkg/ecco does not compile with g77 + no NetCDF here => no pkg/profiles |
| 354 |
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 |
|
| 355 |
fi |
fi |
| 356 |
|
#-- set MPI command: Use default (Dec 2020) which is the same since testreport update on Sep 2013 |
| 357 |
#-- set specific Env Vars: |
#-- set specific Env Vars: |
| 358 |
if test $typ = 'oad' ; then |
if test $typ = 'oad' ; then |
| 359 |
#- for some reasons, "source ScriptFile | tee -a LogFile" |
#- for some reasons, "source ScriptFile | tee -a LogFile" |
| 386 |
if test "x$OPTFILE" != x ; then |
if test "x$OPTFILE" != x ; then |
| 387 |
comm="$comm -of=$OPTFILE" |
comm="$comm -of=$OPTFILE" |
| 388 |
fi |
fi |
| 389 |
if test $MPI = 0 ; then echo '' | tee -a $tdir/output_$tt |
echo '' | tee -a $tdir/output_$tt |
| 390 |
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 |
|
| 391 |
if test "x$option" != x ; then comm="$comm $option" ; fi |
if test "x$option" != x ; then comm="$comm $option" ; fi |
| 392 |
#if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi |
#if test $typ = 'pgi' ; then comm="$comm -t \"\$listT\"" ; fi |
| 393 |
echo " \"eval $comm\"" | tee -a $tdir/output_$tt |
echo " \"eval $comm\"" | tee -a $tdir/output_$tt |
| 406 |
echo "======================" |
echo "======================" |
| 407 |
$comm >> $tdir/output_$tt 2>&1 |
$comm >> $tdir/output_$tt 2>&1 |
| 408 |
else |
else |
| 409 |
echo " \"$comm -mpi -exe $EXE\"" | tee -a $tdir/output_$tt |
echo " \"$comm -mpi\"" | tee -a $tdir/output_$tt |
| 410 |
echo "======================" |
echo "======================" |
| 411 |
$comm -mpi -exe "$EXE" >> $tdir/output_$tt 2>&1 |
$comm -mpi >> $tdir/output_$tt 2>&1 |
| 412 |
fi |
fi |
| 413 |
echo ; cat tst_2+2_out.txt |
echo ; cat tst_2+2_out.txt |
| 414 |
echo |
echo |