| 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` |
| 45 |
|
|
| 46 |
dNam=`hostname -s | tr '[:upper:]' '[:lower:]'` |
dNam=`hostname -s | tr '[:upper:]' '[:lower:]'` |
| 47 |
#TESTDIR="$HOME/test_${dNam}" |
#TESTDIR="$HOME/test_${dNam}" |
|
#outDir=$dNam |
|
|
#MC=11 |
|
| 48 |
TESTDIR="/scratch/jmc/test_${dNam}" |
TESTDIR="/scratch/jmc/test_${dNam}" |
| 49 |
outDir="${dNam}-${tst_grp}" |
MC=13 ; outDir="${dNam}-${tst_grp}" |
| 50 |
MC=13 |
MC=11 ;#outDir=$dNam |
| 51 |
sepDir=1 |
sepDir=1 |
| 52 |
option= |
option= |
| 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='mth mp2+rs mpi oad g77' |
| 57 |
#tst_list='mpa adm mpi gfo+rs mth+rs' |
#tst_list='mpa adm mpi gfo+rs mth+rs' |
| 58 |
#tst_list="$tst_list oad" |
#tst_list="$tst_list oad" |
| 59 |
else |
else |
| 60 |
checkOut=1 |
checkOut=1 |
| 61 |
tst_list='adm g77 gfo+rs ifc' |
tst_list='adm gfo+rs ifc' |
| 62 |
if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi |
#if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi |
| 63 |
fi |
fi |
| 64 |
echo " test: $outDir ; list='$tst_list'" |
echo " test: $outDir ; list='$tst_list'" |
| 65 |
|
|
| 198 |
#- define list of additional experiences to test: |
#- define list of additional experiences to test: |
| 199 |
addExp='' |
addExp='' |
| 200 |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
| 201 |
addExp="offline_cheapaml atm_gray" |
addExp="offline_cheapaml atm_gray atm_strato" |
| 202 |
fi |
fi |
| 203 |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
|
addExp="$addExp global_oce_biogeo_bling" |
|
| 204 |
addExp="$addExp shelfice_remeshing" |
addExp="$addExp shelfice_remeshing" |
| 205 |
fi |
fi |
| 206 |
if test $typ = 'mpi' ; then |
if test $typ = 'mpi' ; then |
| 234 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |
| 235 |
new_dir="MITgcm_$typ" |
new_dir="MITgcm_$typ" |
| 236 |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
reUse=0 ; if [ $checkOut -le 0 ] ; then reUse=1 ; fi |
| 237 |
if test -d $new_dir/CVS -a $reUse = 1 ; then |
if test -d $new_dir/doc -a $reUse = 1 ; then |
| 238 |
cd $tdir/$new_dir |
cd $tdir/$new_dir |
| 239 |
if test $tt != $typ ; then |
if test $tt != $typ ; then |
| 240 |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
| 304 |
( cd verification ; ln -s ../$git_other/$exp2add . ) |
( cd verification ; ln -s ../$git_other/$exp2add . ) |
| 305 |
if test $exp2add = 'global_oce_cs32' ; then |
if test $exp2add = 'global_oce_cs32' ; then |
| 306 |
echo " link dir 'other_input/core2_cnyf' in here" | tee -a $tdir/output_$tt |
echo " link dir 'other_input/core2_cnyf' in here" | tee -a $tdir/output_$tt |
| 307 |
( cd verification/${exp2add} |
( cd ${git_other}/${exp2add} |
| 308 |
ln -s ../../../other_input/core2_cnyf . ) |
ln -s ../../../other_input/core2_cnyf . ) |
| 309 |
fi |
fi |
| 310 |
#if test $exp2add = 'shelfice_remeshing' ; then |
#if test $exp2add = 'shelfice_remeshing' ; then |