2 |
|
|
3 |
# $Header$ |
# $Header$ |
4 |
|
|
5 |
# Test script for MITgcm that should work on most of the csail.mit.edu |
# Test script for MITgcm that should work on most of the csail.mit.edu Linux machines. |
6 |
# Linux machines. |
|
7 |
|
tst_grp=0 ; if test $# = 1 ; then tst_grp=$1 ; fi |
8 |
|
if test $tst_grp != 'a' -a $tst_grp != 'b' ; then |
9 |
|
echo "missing or invalid argument (expect: 'a' or 'b') ==> exit" |
10 |
|
exit 1 |
11 |
|
fi |
12 |
|
|
13 |
# defaults |
# defaults |
14 |
#export PATH="$PATH:/usr/local/bin" |
#export PATH="$PATH:/usr/local/bin" |
37 |
dInWeek=`date +%a` |
dInWeek=`date +%a` |
38 |
outDir=`hostname -s` |
outDir=`hostname -s` |
39 |
TESTDIR="/scratch/jmc/test_${outDir}" |
TESTDIR="/scratch/jmc/test_${outDir}" |
40 |
|
outDir="${outDir}-${tst_grp}" |
41 |
MC=13 |
MC=13 |
|
checkOut=2 |
|
42 |
sepDir=1 |
sepDir=1 |
43 |
option= |
option= |
44 |
#tst_list='g7a adm mpa g77 gfo+rs mth mp2+rs mpi ifc' |
#tst_list='g7a adm mpa g77 gfo+rs mth mp2+rs mpi ifc' |
45 |
#if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm oad" ; fi |
#if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm oad" ; fi |
46 |
outDir="${outDir}-a" |
if test $tst_grp = 'a' ; then |
47 |
tst_list='g7a mpa mth mp2+rs mpi oad' |
checkOut=2 |
48 |
#outDir="${outDir}-b" |
tst_list='g7a mpa mth mp2+rs mpi oad' |
49 |
#tst_list='adm g77 gfo+rs ifc' |
else |
50 |
#if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi |
checkOut=3 |
51 |
|
tst_list='adm g77 gfo+rs ifc' |
52 |
|
if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi |
53 |
|
fi |
54 |
|
echo " test: $outDir ; list='$tst_list'" |
55 |
|
|
56 |
#option="-nc" ; checkOut=1 |
#option="-nc" ; checkOut=1 |
57 |
#option="-q" ; checkOut=1 |
#option="-q" ; checkOut=1 |
101 |
#- define list of additional experiences to test: |
#- define list of additional experiences to test: |
102 |
addExp='' |
addExp='' |
103 |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
if test $typ = 'mp2' -o $typ = 'ifc' ; then |
104 |
addExp='offline_cheapaml atm_gray' |
addExp="offline_cheapaml atm_gray" |
105 |
|
fi |
106 |
|
if test $typ = 'gfo' -o $typ = 'ifc' ; then |
107 |
|
addExp="$addExp global_oce_biogeo_bling" |
108 |
|
fi |
109 |
|
if test $typ = 'mpi' ; then |
110 |
|
addExp="$addExp global_oce_cs32" |
111 |
|
fi |
112 |
|
if test $typ = 'gfo' ; then |
113 |
|
addExp="$addExp shelfice_remeshing" |
114 |
fi |
fi |
115 |
#- check day and time: |
#- check day and time: |
116 |
curDay=`date +%d` ; curHour=`date +%H` |
curDay=`date +%d` ; curHour=`date +%H` |
161 |
echo " add dir: $exp2add (from Contrib:verification_other)" |
echo " add dir: $exp2add (from Contrib:verification_other)" |
162 |
( cd verification ; $cmdCVS co -P -d $exp2add \ |
( cd verification ; $cmdCVS co -P -d $exp2add \ |
163 |
MITgcm_contrib/verification_other/$exp2add > /dev/null ) |
MITgcm_contrib/verification_other/$exp2add > /dev/null ) |
164 |
|
if test $exp2add = 'global_oce_cs32' ; then |
165 |
|
echo " link dir 'other_input/gael_oce_cs32_input' to 'input_fields'" |
166 |
|
( cd verification/global_oce_cs32 |
167 |
|
ln -s ../../../other_input/gael_oce_cs32_input input_fields ) |
168 |
|
fi |
169 |
done |
done |
170 |
fi |
fi |
171 |
else |
else |