/[MITgcm]/MITgcm_contrib/test_scripts/sx8/mitgcmtestreport_split
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/sx8/mitgcmtestreport_split

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5 by mlosch, Mon Mar 2 09:13:18 2015 UTC revision 1.6 by mlosch, Mon Mar 2 14:21:31 2015 UTC
# Line 21  Line 21 
21  # for some reason the module command is not available in a bash script on  # for some reason the module command is not available in a bash script on
22  # this computer so we have to create it here  # this computer so we have to create it here
23  module () { eval `/usr/bin/modulecmd bash $*` ; }  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`
# Line 78  if [ 0 = 0 ]; then Line 80  if [ 0 = 0 ]; then
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
# Line 97  unset CC Line 99  unset CC
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"
# Line 130  qsub $HERE/$JOBSCRIPT Line 132  qsub $HERE/$JOBSCRIPT
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`

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22