| 21 |
source $HOME/bin/openmpi.sh |
source $HOME/bin/openmpi.sh |
| 22 |
|
|
| 23 |
#- method to access CVS: |
#- method to access CVS: |
| 24 |
# cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
| 25 |
# cmdCVS='cvs -d /u/gcmpack' |
# cmdCVS='cvs -d /u/gcmpack' |
| 26 |
export CVS_RSH=ssh |
# export CVS_RSH=ssh |
| 27 |
cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
# cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
| 28 |
|
|
| 29 |
#- which GitHub repository to use and how to access it: |
#- which GitHub repository to use and how to access it: |
| 30 |
git_repo='MITgcm'; git_code='MITgcm' ; git_other='verification_other' |
git_repo='MITgcm'; git_code='MITgcm' ; git_other='verification_other' |
| 34 |
#git_repo="git://github.com/$git_repo" |
#git_repo="git://github.com/$git_repo" |
| 35 |
#git_repo="git@github.com:$git_repo" |
#git_repo="git@github.com:$git_repo" |
| 36 |
|
|
| 37 |
|
#------------------------------------------------------------------- |
| 38 |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
| 39 |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
# =2 : update (git pull) repo and make a new copy code (switch to 3 if no repo) |
| 40 |
# =1 : skip update but use a new copy (if sepDir) |
# =1 : skip update but use a new copy (if sepDir) |
| 41 |
# =0 : use existing test code ( switch to 1 if missing test code ) |
# =0 : use existing test code ( switch to 1 if missing test code ) |
| 42 |
dInWeek=`date +%a` |
dInWeek=`date +%a` |
| 53 |
|
|
| 54 |
if test $tst_grp = 'a' ; then |
if test $tst_grp = 'a' ; then |
| 55 |
checkOut=2 |
checkOut=2 |
| 56 |
#tst_list='g7a mpa mth mp2+rs mpi oad' |
#tst_list='mpa adm mpi gfo+rs mth+rs' |
| 57 |
tst_list='mpa adm mpi gfo+rs mth+rs' |
#tst_list="$tst_list oad" |
| 58 |
tst_list="$tst_list oad" |
#tst_list='adm gfo+rs oad' |
| 59 |
|
tst_list='adm gfo+rs' |
| 60 |
else |
else |
| 61 |
checkOut=1 |
checkOut=1 |
| 62 |
tst_list='adm g77 gfo+rs ifc' |
tst_list='adm g77 gfo+rs ifc' |
| 199 |
#- define list of additional experiences to test: |
#- define list of additional experiences to test: |
| 200 |
addExp='' |
addExp='' |
| 201 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 202 |
addExp="offline_cheapaml atm_gray" |
addExp="offline_cheapaml atm_gray atm_strato" |
| 203 |
fi |
fi |
| 204 |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
if test $typ = 'gfo' -o $typ = 'ifc' -o $typ = 'mpa' ; then |
| 205 |
addExp="$addExp global_oce_biogeo_bling" |
addExp="$addExp global_oce_biogeo_bling" |
| 206 |
|
fi |
| 207 |
|
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
| 208 |
addExp="$addExp shelfice_remeshing" |
addExp="$addExp shelfice_remeshing" |
| 209 |
fi |
fi |
| 210 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 238 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |
| 239 |
new_dir="MITgcm_$typ" |
new_dir="MITgcm_$typ" |
| 240 |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
| 241 |
if test -d $new_dir/CVS -a $reUse = 1 ; then |
if test -d $new_dir/doc -a $reUse = 1 ; then |
| 242 |
cd $tdir/$new_dir |
cd $tdir/$new_dir |
| 243 |
if test $tt != $typ ; then |
if test $tt != $typ ; then |
| 244 |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
( cd verification ; ../tools/do_tst_2+2 -clean ) |