26 |
cmdCVS='cvs -d /u/gcmpack' |
cmdCVS='cvs -d /u/gcmpack' |
27 |
|
|
28 |
# checkOut=2 : download new code ; |
# checkOut=2 : download new code ; |
29 |
|
# =3 : skip download but, if sepDir, use a new copy |
30 |
# =1 : update code (if no existing code -> swith to 2) |
# =1 : update code (if no existing code -> swith to 2) |
31 |
# =0 : use existing code (if no existing code -> swith to 2) |
# =0 : use existing code (if no existing code -> swith to 2) |
32 |
dInWeek=`date +%a` |
dInWeek=`date +%a` |
33 |
TESTDIR="/scratch/jmc/test_"`hostname -s` |
outDir=`hostname -s` |
34 |
|
TESTDIR="/scratch/jmc/test_${outDir}" |
35 |
MC=13 |
MC=13 |
36 |
checkOut=2 |
checkOut=2 |
37 |
sepDir=1 |
sepDir=1 |
38 |
option= |
option= |
39 |
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' |
40 |
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 |
41 |
#tst_list='g77 adm gfo ifc mth pgi+rs' |
outDir="${outDir}-a" |
42 |
#tst_list='g77 gfo+rs mth' |
tst_list='g7a mpa mth mp2+rs mpi oad' |
43 |
|
#outDir="${outDir}-b" |
44 |
|
#tst_list='adm g77 gfo+rs ifc' |
45 |
|
#if test "x$dInWeek" = xSun ; then tst_list="$tst_list tlm" ; fi |
46 |
|
|
47 |
#option="-nc" ; checkOut=1 |
#option="-nc" ; checkOut=1 |
48 |
#option="-q" ; checkOut=1 |
#option="-q" ; checkOut=1 |
108 |
touch $tdir/output_$tt |
touch $tdir/output_$tt |
109 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |
110 |
new_dir="MITgcm_$typ" |
new_dir="MITgcm_$typ" |
111 |
if test -d $new_dir/CVS -a $checkOut != 2 ; then |
reUse=1 ; if [ $checkOut -ge 2 ] ; then reUse=0 ; fi |
112 |
|
if test -d $new_dir/CVS -a $reUse = 1 ; then |
113 |
pushd $new_dir |
pushd $new_dir |
114 |
if test $tt != $typ ; then |
if test $tt != $typ ; then |
115 |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
( cd verification ; ../tools/do_tst_2+2 -clean ) |
145 |
else |
else |
146 |
comm="$comm -md cyrus-makedepend" |
comm="$comm -md cyrus-makedepend" |
147 |
fi |
fi |
148 |
comm="$comm -a jmc@mitgcm.org" |
comm="$comm -odir $outDir -a jmc@mitgcm.org" |
149 |
#-- set the optfile (+ mpi & match-precision) |
#-- set the optfile (+ mpi & match-precision) |
150 |
MPI=0 |
MPI=0 |
151 |
case $typ in |
case $typ in |
152 |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
'g77'|'g7a') OPTFILE='../tools/build_options/linux_amd64_g77' ;; |
153 |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -match $MC -devel" |
'gfo'|'adm'|'oad'|'tlm'|'mth') comm="$comm -match $MC -devel" |
154 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
155 |
'ifc') OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
'ifc') comm="$comm -devel" |
156 |
|
OPTFILE='../tools/build_options/linux_amd64_ifort11' ;; |
157 |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
'pgi') OPTFILE='../tools/build_options/linux_amd64_pgf77' ;; |
158 |
'mpa'|'mpi'|'mp2') comm="$comm -match $MC -devel" ; MPI=6 |
'mpa'|'mpi'|'mp2') comm="$comm -match $MC -devel" ; MPI=6 |
159 |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
OPTFILE='../tools/build_options/linux_amd64_gfortran' ;; |
215 |
if test $tt != $typ |
if test $tt != $typ |
216 |
then |
then |
217 |
echo "testing restart using:" | tee -a $tdir/output_$tt |
echo "testing restart using:" | tee -a $tdir/output_$tt |
218 |
comm="../tools/do_tst_2+2 -a jmc@mitgcm.org" |
comm="../tools/do_tst_2+2 -o $outDir -a jmc@mitgcm.org" |
219 |
if test $MPI = 0 ; then |
if test $MPI = 0 ; then |
220 |
echo " \"$comm\"" | tee -a $tdir/output_$tt |
echo " \"$comm\"" | tee -a $tdir/output_$tt |
221 |
echo "======================" |
echo "======================" |