| 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 |
|
|
| 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 |