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 |