| 36 |
git_repo="git://github.com/$git_repo" |
git_repo="git://github.com/$git_repo" |
| 37 |
#git_repo="git@github.com:$git_repo" |
#git_repo="git@github.com:$git_repo" |
| 38 |
|
|
| 39 |
|
#------------------------------------------------------------------- |
| 40 |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
| 41 |
# =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) |
| 42 |
# =1 : skip update but use a new copy (if sepDir) |
# =1 : skip update but use a new copy (if sepDir) |
| 43 |
# =0 : use existing test code ( switch to 1 if missing test code ) |
# =0 : use existing test code ( switch to 1 if missing test code ) |
| 44 |
dInWeek=`date +%a` |
dInWeek=`date +%a` |
| 55 |
|
|
| 56 |
if test $tst_grp = 'a' ; then |
if test $tst_grp = 'a' ; then |
| 57 |
checkOut=2 |
checkOut=2 |
| 58 |
tst_list='g7a mpa mth mp2+rs mpi oad' |
tst_list='mpa mth mp2+rs mpi oad' |
| 59 |
#tst_list='mpa adm mpi gfo+rs mth+rs' |
#tst_list='mpa adm mpi gfo+rs mth+rs' |
| 60 |
#tst_list="$tst_list oad" |
#tst_list="$tst_list oad" |
| 61 |
else |
else |
| 151 |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
| 152 |
exit 3 |
exit 3 |
| 153 |
fi |
fi |
| 154 |
|
( cd $git_code ; git checkout master -- . ) |
| 155 |
echo "Updating current clone ( $git_other ) ..." |
echo "Updating current clone ( $git_other ) ..." |
| 156 |
( cd $git_other ; git pull ) |
( cd $git_other ; git pull ) |
| 157 |
retVal=$? |
retVal=$? |
| 161 |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit" |
| 162 |
exit 3 |
exit 3 |
| 163 |
fi |
fi |
| 164 |
( cd $git_other ; git checkout master ) |
( cd $git_other ; git checkout master -- . ) |
| 165 |
fi |
fi |
| 166 |
#---- making a new working copy: MITgcm_today |
#---- making a new working copy: MITgcm_today |
|
( cd $git_code ; git checkout master ) |
|
| 167 |
rsync -a $git_code/ MITgcm_today --exclude '.git' |
rsync -a $git_code/ MITgcm_today --exclude '.git' |
| 168 |
if test $sepDir = 0 ; then |
if test $sepDir = 0 ; then |
| 169 |
echo -n " make a local copy of $git_other in MITgcm_today ..." | tee -a $tdir/output_$tt |
echo -n " make a local copy of $git_other in MITgcm_today ..." | tee -a $tdir/output_$tt |
| 200 |
#- define list of additional experiences to test: |
#- define list of additional experiences to test: |
| 201 |
addExp='' |
addExp='' |
| 202 |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
| 203 |
addExp="offline_cheapaml atm_gray" |
addExp="offline_cheapaml atm_gray atm_strato" |
| 204 |
fi |
fi |
| 205 |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
if test $typ = 'gfo' -o $typ = 'ifc' -o $typ = 'adm' ; then |
| 206 |
addExp="$addExp global_oce_biogeo_bling" |
addExp="$addExp global_oce_biogeo_bling" |
| 207 |
|
fi |
| 208 |
|
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
| 209 |
addExp="$addExp shelfice_remeshing" |
addExp="$addExp shelfice_remeshing" |
| 210 |
fi |
fi |
| 211 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 239 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |
| 240 |
new_dir="MITgcm_$typ" |
new_dir="MITgcm_$typ" |
| 241 |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
| 242 |
if test -d $new_dir/CVS -a $reUse = 1 ; then |
if test -d $new_dir/doc -a $reUse = 1 ; then |
| 243 |
cd $tdir/$new_dir |
cd $tdir/$new_dir |
| 244 |
if test $tt != $typ ; then |
if test $tt != $typ ; then |
| 245 |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
( cd verification ; ../tools/do_tst_2+2 -clean ) |