| 47 |
fi |
fi |
| 48 |
done |
done |
| 49 |
if [ $gfort -eq 0 ] ; then |
if [ $gfort -eq 0 ] ; then |
|
#echo 'source ~jmc/bin/intel_v12.sh' |
|
|
#source ~jmc/bin/intel_v12.sh |
|
| 50 |
echo 'source ~jmc/bin/intel_v14.sh' |
echo 'source ~jmc/bin/intel_v14.sh' |
| 51 |
source ~jmc/bin/intel_v14.sh |
source ~jmc/bin/intel_v14.sh |
| 52 |
|
#echo 'source ~jmc/bin/intel_v15.sh' |
| 53 |
|
#source ~jmc/bin/intel_v15.sh |
| 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' |
| 66 |
rm -f tr_clean_$tt.log |
rm -f tr_clean_$tt.log |
| 67 |
echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$? |
echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$? |
| 68 |
echo " testing tt= $tt , fwd= $fwd" |
echo " testing tt= $tt , fwd= $fwd" |
| 69 |
if [ $fwd -eq 0 ] ; then |
if test -d MITgcm_$tt/verification ; then |
| 70 |
set -x |
#- cleaning previous testreport run and updating the code: |
| 71 |
( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
if [ $fwd -eq 0 ] ; then |
| 72 |
set +x |
set -x |
| 73 |
else |
#- cleanup previous test: |
| 74 |
set -x |
( cd MITgcm_$tt/verification ; ./testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 75 |
|
set +x |
| 76 |
|
else |
| 77 |
|
set -x |
| 78 |
#- cleanup previous restart: |
#- cleanup previous restart: |
| 79 |
( 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 ) |
| 80 |
#- cleanup previous test: |
#- cleanup previous test: |
| 81 |
( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; ./testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
| 82 |
set +x |
set +x |
| 83 |
fi |
fi |
| 84 |
if [ $gfort -eq 0 ] ; then |
if [ $gfort -eq 0 ] ; then |
| 85 |
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 |
| 86 |
( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax ) |
( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax ) |
| 91 |
|
|
| 92 |
echo "==========================================================================" |
echo "==========================================================================" |
| 93 |
set -x |
set -x |
| 94 |
|
#- update the code: |
| 95 |
( cd MITgcm_$tt ; $cmdCVS update -P -d >> ../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt ; $cmdCVS update -P -d >> ../tr_clean_$tt.log 2>&1 ) |
| 96 |
set +x |
set +x |
| 97 |
|
else |
| 98 |
|
#- download new code: |
| 99 |
|
echo " run '$cmdCVS co -P -d MITgcm_$tt MITgcm'" >> tr_clean_$tt.log |
| 100 |
|
echo "==========================================================================" |
| 101 |
|
set -x |
| 102 |
|
$cmdCVS co -P -d MITgcm_$tt MITgcm >> tr_clean_$tt.log 2>&1 |
| 103 |
|
set +x |
| 104 |
|
fi |
| 105 |
echo "" |
echo "" |
|
|
|
| 106 |
echo "==========================================================================" |
echo "==========================================================================" |
| 107 |
|
|
| 108 |
|
if test -d MITgcm_$tt/verification ; then |
| 109 |
if test -e tr_run_$tt.log ; then mv -f tr_run_$tt.log tr_run_$tt.log_bak ; fi |
if test -e tr_run_$tt.log ; then mv -f tr_run_$tt.log tr_run_$tt.log_bak ; fi |
| 110 |
cd MITgcm_$tt/verification |
cd MITgcm_$tt/verification |
| 111 |
|
|
| 119 |
'iadm' ) |
'iadm' ) |
| 120 |
|
|
| 121 |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -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 -ncad -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 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 131 |
'iad4' ) |
'iad4' ) |
| 132 |
|
|
| 133 |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 134 |
-devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
-devel -nc -ncad -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 135 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
echo '' >> ../../tr_run_$tt.log 2>&1 |
| 136 |
|
|
| 137 |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
./testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 178 |
'gadm') |
'gadm') |
| 179 |
|
|
| 180 |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_gfortran \ |
| 181 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 182 |
|
|
| 183 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 184 |
;; |
;; |
| 186 |
'gads') |
'gads') |
| 187 |
|
|
| 188 |
./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -adm -of ../tools/build_options/linux_amd64_gfortran \ |
| 189 |
-devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -ncad -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 190 |
|
|
| 191 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 192 |
;; |
;; |
| 194 |
'gad4') |
'gad4') |
| 195 |
|
|
| 196 |
./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \ |
./testreport -adm -ur4 -of ../tools/build_options/linux_amd64_gfortran \ |
| 197 |
-devel -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-devel -ncad -nc -match 5 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 198 |
|
|
| 199 |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log |
| 200 |
;; |
;; |
| 281 |
set +x |
set +x |
| 282 |
cd ../.. |
cd ../.. |
| 283 |
|
|
| 284 |
|
else |
| 285 |
|
echo "error: missing dir MITgcm_$tt/verification" |
| 286 |
|
fi |
| 287 |
|
|
| 288 |
done |
done |