| 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 |
|
elif test $1 = gfor4 ; then |
| 17 |
|
tst_list='gad4 gmp4 gfo4' |
| 18 |
else |
else |
| 19 |
tst_list=$* |
tst_list=$* |
| 20 |
fi |
fi |
| 48 |
do |
do |
| 49 |
|
|
| 50 |
echo "==========================================================================" |
echo "==========================================================================" |
| 51 |
set -x |
# set -x |
| 52 |
rm -f tr_clean_$tt.log |
rm -f tr_clean_$tt.log |
| 53 |
if test $tt = 'iadm' -o $tt = 'iad4' -o $tt = 'gadm' -o $tt = 'gads' ; then |
echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$? |
| 54 |
|
echo " testing tt= $tt , fwd= $fwd" |
| 55 |
|
if [ $fwd -eq 0 ] ; then |
| 56 |
|
set -x |
| 57 |
( 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 ) |
| 58 |
else |
else |
| 59 |
|
set -x |
| 60 |
#- cleanup previous restart: |
#- cleanup previous restart: |
| 61 |
( 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 ) |
| 62 |
#- cleanup previous test: |
#- cleanup previous test: |
| 63 |
( 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 |
|
| 64 |
set +x |
set +x |
| 65 |
|
fi |
| 66 |
if [ $gfort -eq 0 ] ; then |
if [ $gfort -eq 0 ] ; then |
| 67 |
echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log |
echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log |
| 68 |
( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax ) |
( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax ) |
| 176 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 177 |
;; |
;; |
| 178 |
|
|
| 179 |
|
'gad4') |
| 180 |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 181 |
|
|
| 182 |
|
testreport -adm -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \ |
| 183 |
|
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 184 |
|
|
| 185 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 186 |
|
;; |
| 187 |
|
|
| 188 |
'gmp2') |
'gmp2') |
| 189 |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 190 |
|
|
| 218 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 219 |
;; |
;; |
| 220 |
|
|
| 221 |
|
'gmp4') |
| 222 |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 223 |
|
|
| 224 |
|
testreport -MPI 3 -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \ |
| 225 |
|
-devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 226 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 227 |
|
|
| 228 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 229 |
|
|
| 230 |
|
#- test restart: |
| 231 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 232 |
|
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 233 |
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 234 |
|
;; |
| 235 |
|
|
| 236 |
'gfo') |
'gfo') |
| 237 |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 238 |
|
|
| 240 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 241 |
|
|
| 242 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 243 |
|
|
| 244 |
|
#- test restart: |
| 245 |
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 246 |
|
../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 247 |
|
;; |
| 248 |
|
|
| 249 |
|
'gfo4') |
| 250 |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 251 |
|
|
| 252 |
|
testreport -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \ |
| 253 |
|
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 254 |
|
|
| 255 |
|
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 256 |
|
|
| 257 |
#- test restart: |
#- test restart: |
| 258 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |