| 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' |
tst_list='iad4 imp2 iur4' |
| 13 |
|
dd1=`date +%d -d "1 day"` |
| 14 |
|
if test $dd1 != '01' ; then echo 'not last day of month'; exit ; fi |
| 15 |
elif test $1 = gfort ; then |
elif test $1 = gfort ; then |
| 16 |
# tst_list='gadm gads gmp2 gmpi gfo g77' |
# tst_list='gadm gads gmp2 gmpi gfo g77' |
| 17 |
tst_list='gadm gads gmp2 gfo g77' |
tst_list='gadm gads gmp2 gfo' |
| 18 |
|
elif test $1 = gfor4 ; then |
| 19 |
|
tst_list='gad4 gmp4 gfo4 g77' |
| 20 |
else |
else |
| 21 |
tst_list=$* |
tst_list=$* |
| 22 |
fi |
fi |
| 24 |
echo "run: \""`basename $0` $*"\" on:" `date` |
echo "run: \""`basename $0` $*"\" on:" `date` |
| 25 |
echo " tst_list='$tst_list'" |
echo " tst_list='$tst_list'" |
| 26 |
|
|
| 27 |
|
#- to get ~/bin in the patch (for staf) when run on cron: |
| 28 |
|
if [ -d ~/bin ]; then |
| 29 |
|
echo 'add ~/bin to $PATH' |
| 30 |
|
export PATH=$PATH:~/bin |
| 31 |
|
fi |
| 32 |
|
#- to get case insensitive "ls" (and order of tested experiments) |
| 33 |
|
#export LC_ALL="en_US.UTF-8" |
| 34 |
|
#- Turn off stack limit for FIZHI & AD-tests |
| 35 |
|
ulimit -s unlimited |
| 36 |
|
#- method to acces CVS: |
| 37 |
|
cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack -q' |
| 38 |
|
|
| 39 |
#-- for now, cannot mix ifort/gfortran tests: |
#-- for now, cannot mix ifort/gfortran tests: |
| 40 |
gfort=1 |
gfort=1 |
| 41 |
for tt in $tst_list |
for tt in $tst_list |
| 47 |
fi |
fi |
| 48 |
done |
done |
| 49 |
if [ $gfort -eq 0 ] ; then |
if [ $gfort -eq 0 ] ; then |
| 50 |
#echo 'source ~jmc/bin/intel_v11.sh' |
#echo 'source ~jmc/bin/intel_v12.sh' |
| 51 |
#source ~jmc/bin/intel_v11.sh |
#source ~jmc/bin/intel_v12.sh |
| 52 |
echo 'source ~jmc/bin/intel_v12.sh' |
echo 'source ~jmc/bin/intel_v14.sh' |
| 53 |
source ~jmc/bin/intel_v12.sh |
source ~jmc/bin/intel_v14.sh |
|
export GFORTRAN_OPTFILE=f |
|
| 54 |
fi |
fi |
| 55 |
if [ $gfort -eq 2 ] ; then |
if [ $gfort -eq 2 ] ; then |
| 56 |
echo 'source ~jmc/bin/openmpi.sh' |
echo 'source ~jmc/bin/openmpi.sh' |
| 57 |
source ~jmc/bin/openmpi.sh |
source ~jmc/bin/openmpi.sh |
|
export GFORTRAN_OPTFILE=t |
|
| 58 |
fi |
fi |
| 59 |
|
|
| 60 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
| 62 |
do |
do |
| 63 |
|
|
| 64 |
echo "==========================================================================" |
echo "==========================================================================" |
| 65 |
set -x |
# set -x |
| 66 |
rm -f tr_clean_$tt.log |
rm -f tr_clean_$tt.log |
| 67 |
if test $tt = 'iadm' -o $tt = 'iad4' -o $tt = 'gadm' -o $tt = 'gads' ; then |
echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$? |
| 68 |
( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
echo " testing tt= $tt , fwd= $fwd" |
| 69 |
|
if [ $fwd -eq 0 ] ; then |
| 70 |
|
set -x |
| 71 |
|
( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 72 |
|
set +x |
| 73 |
else |
else |
| 74 |
|
set -x |
| 75 |
#- cleanup previous restart: |
#- cleanup previous restart: |
| 76 |
( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 77 |
#- cleanup previous test: |
#- cleanup previous test: |
| 78 |
( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
|
fi |
|
| 79 |
set +x |
set +x |
| 80 |
|
fi |
| 81 |
|
if [ $gfort -eq 0 ] ; then |
| 82 |
|
echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log |
| 83 |
|
( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax ) |
| 84 |
|
else |
| 85 |
|
echo " run '$cmdCVS update -P -d'" >> tr_clean_$tt.log |
| 86 |
|
fi |
| 87 |
echo "" |
echo "" |
| 88 |
|
|
| 89 |
echo "==========================================================================" |
echo "==========================================================================" |
| 90 |
set -x |
set -x |
| 91 |
( cd MITgcm_$tt ; cvs update -P -d >> ../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt ; $cmdCVS update -P -d >> ../tr_clean_$tt.log 2>&1 ) |
| 92 |
set +x |
set +x |
| 93 |
echo "" |
echo "" |
| 94 |
|
|
| 101 |
# verbose mode: |
# verbose mode: |
| 102 |
set -x |
set -x |
| 103 |
pwd |
pwd |
| 104 |
|
test -e tr_out.txt && mv -f tr_out.txt tr_out.sav |
| 105 |
|
|
| 106 |
case $tt in |
case $tt in |
| 107 |
'iadm' ) |
'iadm' ) |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 108 |
|
|
| 109 |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 110 |
-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 |
| 111 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 112 |
|
|
| 113 |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 114 |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
-devel -q -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 115 |
|
|
| 116 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 117 |
;; |
;; |
| 118 |
|
|
| 119 |
'iad4' ) |
'iad4' ) |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 120 |
|
|
| 121 |
testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 122 |
-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 |
| 123 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 124 |
|
|
| 125 |
testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 126 |
-devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
-devel -q -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 127 |
|
|
| 128 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 129 |
;; |
;; |
| 130 |
|
|
| 131 |
'imp2') |
'imp2') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 132 |
|
|
| 133 |
export OMP_NUM_THREADS=2 |
export OMP_NUM_THREADS=2 |
| 134 |
export KMP_STACKSIZE=400m |
export KMP_STACKSIZE=400m |
| 135 |
|
|
| 136 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 137 |
-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 |
| 138 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 139 |
|
|
| 140 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 141 |
-devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -q -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 142 |
|
|
| 143 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 144 |
|
|
| 145 |
#- test restart: |
#- test restart: |
| 146 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 147 |
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 148 |
;; |
;; |
| 149 |
|
|
| 150 |
'iur4') |
'iur4') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 151 |
|
|
| 152 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 153 |
-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 |
| 154 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 155 |
|
|
| 156 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 157 |
-devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -q -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 158 |
|
|
| 159 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 160 |
|
|
| 161 |
#- test restart: |
#- test restart: |
| 162 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 163 |
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 164 |
;; |
;; |
| 165 |
|
|
| 166 |
'gadm') |
'gadm') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 167 |
|
|
| 168 |
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \ |
| 169 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 170 |
|
|
| 171 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 172 |
;; |
;; |
| 173 |
|
|
| 174 |
'gads') |
'gads') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 175 |
|
|
| 176 |
testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
| 177 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 178 |
|
|
| 179 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 180 |
;; |
;; |
| 181 |
|
|
| 182 |
|
'gad4') |
| 183 |
|
|
| 184 |
|
./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \ |
| 185 |
|
-devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 186 |
|
|
| 187 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 188 |
|
;; |
| 189 |
|
|
| 190 |
'gmp2') |
'gmp2') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 191 |
|
|
| 192 |
export OMP_NUM_THREADS=2 |
export OMP_NUM_THREADS=2 |
| 193 |
export GOMP_STACKSIZE=400m |
export GOMP_STACKSIZE=400m |
| 194 |
|
|
| 195 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_gfortran \ |
| 196 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 197 |
|
|
| 198 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 199 |
|
|
| 200 |
#- test restart: |
#- test restart: |
| 201 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 202 |
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 203 |
;; |
;; |
| 204 |
|
|
| 205 |
'gmpi') |
'gmpi') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 206 |
|
|
| 207 |
testreport -MPI 3 -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -MPI 3 -of ../tools/build_options/linux_amd64_gfortran \ |
| 208 |
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
|
| 209 |
|
|
| 210 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 211 |
|
|
| 212 |
#- test restart: |
#- test restart: |
| 213 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 214 |
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 215 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
;; |
| 216 |
|
|
| 217 |
|
'gmp4') |
| 218 |
|
|
| 219 |
|
./testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_gfortran \ |
| 220 |
|
-devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 221 |
|
|
| 222 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 223 |
|
|
| 224 |
|
#- test restart: |
| 225 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 226 |
|
../tools/do_tst_2+2 -mpi -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 227 |
;; |
;; |
| 228 |
|
|
| 229 |
'gfo') |
'gfo') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 230 |
|
|
| 231 |
testreport -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -of ../tools/build_options/linux_amd64_gfortran \ |
| 232 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 233 |
|
|
| 234 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 238 |
../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 239 |
;; |
;; |
| 240 |
|
|
| 241 |
|
'gfo4') |
| 242 |
|
|
| 243 |
|
./testreport -ur4 -of ../tools/build_options/linux_amd64_gfortran \ |
| 244 |
|
-devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 245 |
|
|
| 246 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 247 |
|
|
| 248 |
|
#- test restart: |
| 249 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 250 |
|
../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 251 |
|
;; |
| 252 |
|
|
| 253 |
'g77') |
'g77') |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
|
| 254 |
|
|
| 255 |
testreport -of ../tools/build_options/linux_amd64_g77 \ |
./testreport -of ../tools/build_options/linux_amd64_g77 \ |
| 256 |
-skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \ |
-skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \ |
| 257 |
-nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 258 |
|
|