| 18 |
# $Header$ |
# $Header$ |
| 19 |
# $Name$ |
# $Name$ |
| 20 |
|
|
| 21 |
|
# for some reason the module command is not available in a bash script on |
| 22 |
|
# this computer so we have to create it here |
| 23 |
|
module () { eval `/usr/bin/modulecmd bash $*` ; } |
| 24 |
|
module use --append /sx8/user2/awisoft/modulefiles |
| 25 |
# load latest compiler: |
# load latest compiler: |
| 26 |
module load sxf90/460 |
module load sxf90/460 |
| 27 |
|
module load netcdf |
| 28 |
|
# |
| 29 |
VENDOR=sxf90 |
VENDOR=sxf90 |
| 30 |
RUNIT="runit_"$VENDOR |
RUNIT="runit_"$VENDOR |
| 31 |
HERE=`pwd` |
HERE=`pwd` |
| 80 |
cd $TDIR |
cd $TDIR |
| 81 |
# cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_verif_basic > cvs_co.log 2>&1 |
# cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_verif_basic > cvs_co.log 2>&1 |
| 82 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm > cvs_co.log 2>&1 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm > cvs_co.log 2>&1 |
| 83 |
if [ $status > 0 ]; then |
if [ "$?" != "0" ]; then |
| 84 |
cat cvs_co.log |
cat cvs_co.log |
| 85 |
fi |
fi |
| 86 |
else |
else |
| 87 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack -q update >> cvs_co.log 2>&1 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack -q update >> cvs_co.log 2>&1 |
| 88 |
if [ $status > 0 ]; then |
if [ "$?" != "0" ]; then |
| 89 |
cat cvs_co.log |
cat cvs_co.log |
| 90 |
fi |
fi |
| 91 |
fi |
fi |
| 99 |
|
|
| 100 |
$RUNTESTREPORT -j 8 -norun > $MYOUTPUT 2>&1 |
$RUNTESTREPORT -j 8 -norun > $MYOUTPUT 2>&1 |
| 101 |
|
|
| 102 |
if [ $status > 0 ] |
if [ "$?" != "0" ] |
| 103 |
then |
then |
| 104 |
echo "something wrong with testreport" |
echo "something wrong with testreport" |
| 105 |
echo "keeping the working directory" |
echo "keeping the working directory" |
| 132 |
jobruns=`qstat -n -u mlosch | grep "$JOBNAME"` |
jobruns=`qstat -n -u mlosch | grep "$JOBNAME"` |
| 133 |
while [ "${jobruns}"x != x ] |
while [ "${jobruns}"x != x ] |
| 134 |
do |
do |
| 135 |
sleep 20 |
sleep 200 |
| 136 |
jobruns=`qstat -n -u mlosch | grep "$JOBNAME"` |
jobruns=`qstat -n -u mlosch | grep "$JOBNAME"` |
| 137 |
echo "waiting for job ${jobruns%% *} ($JOBNAME) to complete" |
echo "waiting for job ${jobruns%% *} ($JOBNAME) to complete" |
| 138 |
currentexp=`grep Experiment $MYOUTPUT | tail -1` |
currentexp=`grep Experiment $MYOUTPUT | tail -1` |