| 8 |
exit |
exit |
| 9 |
else |
else |
| 10 |
if test $1 = ifort ; then |
if test $1 = ifort ; then |
| 11 |
tst_list='iadm imp2 iur4' |
# tst_list='iadm imp2 iur4' |
| 12 |
|
tst_list='iad4 imp2 iur4' |
| 13 |
elif test $1 = gfort ; then |
elif test $1 = gfort ; then |
| 14 |
tst_list='gadm gads gmp2 gmpi gfo g77' |
# tst_list='gadm gads gmp2 gmpi gfo g77' |
| 15 |
# tst_list='gadm gads gmp2 gfo g77' |
tst_list='gadm gads gmp2 gfo g77' |
| 16 |
else |
else |
| 17 |
tst_list=$* |
tst_list=$* |
| 18 |
fi |
fi |
| 19 |
fi |
fi |
| 20 |
|
echo "run: \""`basename $0` $*"\" on:" `date` |
| 21 |
|
echo " tst_list='$tst_list'" |
| 22 |
|
|
| 23 |
#-- for now, cannot mix ifort/gfortran tests: |
#-- for now, cannot mix ifort/gfortran tests: |
| 24 |
gfort=1 |
gfort=1 |
| 35 |
#source ~jmc/bin/intel_v11.sh |
#source ~jmc/bin/intel_v11.sh |
| 36 |
echo 'source ~jmc/bin/intel_v12.sh' |
echo 'source ~jmc/bin/intel_v12.sh' |
| 37 |
source ~jmc/bin/intel_v12.sh |
source ~jmc/bin/intel_v12.sh |
|
export GFORTRAN_OPTFILE=f |
|
| 38 |
fi |
fi |
| 39 |
if [ $gfort -eq 2 ] ; then |
if [ $gfort -eq 2 ] ; then |
| 40 |
echo 'source ~jmc/bin/openmpi.sh' |
echo 'source ~jmc/bin/openmpi.sh' |
| 41 |
source ~jmc/bin/openmpi.sh |
source ~jmc/bin/openmpi.sh |
|
export GFORTRAN_OPTFILE=t |
|
| 42 |
fi |
fi |
| 43 |
|
|
| 44 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
| 48 |
echo "==========================================================================" |
echo "==========================================================================" |
| 49 |
set -x |
set -x |
| 50 |
rm -f tr_clean_$tt.log |
rm -f tr_clean_$tt.log |
| 51 |
if test $tt = 'iadm' -o $tt = 'gadm' -o $tt = 'gads' ; then |
if test $tt = 'iadm' -o $tt = 'iad4' -o $tt = 'gadm' -o $tt = 'gads' ; then |
| 52 |
( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 53 |
else |
else |
| 54 |
#- cleanup previous restart: |
#- cleanup previous restart: |
| 81 |
|
|
| 82 |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 83 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 84 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 85 |
|
|
| 86 |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 87 |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
| 88 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 89 |
|
|
| 90 |
#unset echo |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 91 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
;; |
| 92 |
|
|
| 93 |
|
'iad4' ) |
| 94 |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 95 |
|
|
| 96 |
|
testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 97 |
|
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 98 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 99 |
|
|
| 100 |
|
testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 101 |
|
-devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
| 102 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 103 |
|
|
| 104 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 105 |
;; |
;; |
| 106 |
|
|
| 107 |
'imp2') |
'imp2') |
| 112 |
|
|
| 113 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 114 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 115 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 116 |
|
|
| 117 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 118 |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 119 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 120 |
|
|
| 121 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 122 |
|
|
| 123 |
#- test restart: |
#- test restart: |
| 124 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 131 |
|
|
| 132 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 133 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 134 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 135 |
|
|
| 136 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 137 |
-devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 138 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 139 |
|
|
| 140 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 141 |
|
|
| 142 |
#- test restart: |
#- test restart: |
| 143 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 152 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
| 153 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 154 |
|
|
| 155 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 156 |
;; |
;; |
| 157 |
|
|
| 158 |
'gads') |
'gads') |
| 161 |
testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
| 162 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 163 |
|
|
| 164 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 165 |
;; |
;; |
| 166 |
|
|
| 167 |
'gmp2') |
'gmp2') |
| 174 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 175 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 176 |
|
|
| 177 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 178 |
|
|
| 179 |
#- test restart: |
#- test restart: |
| 180 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 189 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 190 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 191 |
|
|
| 192 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 193 |
|
|
| 194 |
#- test restart: |
#- test restart: |
| 195 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 203 |
testreport -of ../tools/build_options/linux_amd64_gfortran \ |
testreport -of ../tools/build_options/linux_amd64_gfortran \ |
| 204 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 205 |
|
|
| 206 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 207 |
|
|
| 208 |
#- test restart: |
#- test restart: |
| 209 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 217 |
-skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \ |
-skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \ |
| 218 |
-nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 219 |
|
|
| 220 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 221 |
|
|
| 222 |
#- test restart: |
#- test restart: |
| 223 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |