/[MITgcm]/MITgcm/tools/example_scripts/csail/test_baudelaire
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/csail/test_baudelaire

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

revision 1.18 by jmc, Fri May 10 20:24:07 2013 UTC revision 1.19 by jmc, Fri Jun 28 15:38:19 2013 UTC
# Line 25  ulimit -s unlimited Line 25  ulimit -s unlimited
25  cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'  cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'
26  cmdCVS='cvs -d /u/gcmpack'  cmdCVS='cvs -d /u/gcmpack'
27    
28    # checkOut=2 : download new code ;
29    #   =1 : update code       (if no existing code -> swith to 2)
30    #   =0 : use existing code (if no existing code -> swith to 2)
31  dInWeek=`date +%a`  dInWeek=`date +%a`
32  TESTDIR="/scratch/jmc/test_"`hostname -s`  TESTDIR="/scratch/jmc/test_"`hostname -s`
33  MC=13  MC=13
34  checkOut=1  checkOut=2
35  sepDir=1  sepDir=1
36  option=  option=
37  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'
# Line 36  if test "x$dInWeek" = xSun ; then tst_li Line 39  if test "x$dInWeek" = xSun ; then tst_li
39  #tst_list='g77 adm gfo ifc mth pgi+rs'  #tst_list='g77 adm gfo ifc mth pgi+rs'
40  #tst_list='g77 gfo+rs mth'  #tst_list='g77 gfo+rs mth'
41    
42  #option="-nc" ; checkOut=0  #option="-nc" ; checkOut=1
43  #option="-q"  ; checkOut=0  #option="-q"  ; checkOut=1
44    
45  TODAY=`date +%d`  TODAY=`date +%d`
46  tdir=$TESTDIR  tdir=$TESTDIR
47  if test $checkOut = '0' ; then  if test $checkOut != 2 ; then
48    if test -e $tdir/MITgcm/CVS ; then    if test -e $tdir/MITgcm/CVS ; then
49      echo $tdir/MITgcm/CVS 'exist'      echo $tdir/MITgcm/CVS 'exist'
50      if test $sepDir = 0 ; then      if test $sepDir = 0 -a $checkOut = 1 ; then
51        echo -n "Update the MITgcm code using: $cmdCVS ..."        echo -n "Update the MITgcm code using: $cmdCVS ..."
52        cd $tdir/MITgcm        cd $tdir/MITgcm
53        $cmdCVS update -P -d        $cmdCVS update -P -d
# Line 52  if test $checkOut = '0' ; then Line 55  if test $checkOut = '0' ; then
55      fi      fi
56    else    else
57      echo -n $tdir/MITgcm 'missing ; '      echo -n $tdir/MITgcm 'missing ; '
58      checkOut=1      checkOut=2
59    fi    fi
60  fi  fi
61  if test $checkOut = '1' ; then  if test $checkOut = 2 ; then
62    if test -e $tdir ; then    if test -e $tdir ; then
63      echo -n "Removing working copy: $tdir/MITgcm ..."      echo -n "Removing working copy: $tdir/MITgcm ..."
64      test -e $tdir/MITgcm  &&  rm -rf $tdir/MITgcm      test -e $tdir/MITgcm  &&  rm -rf $tdir/MITgcm
# Line 91  do Line 94  do
94      date ; echo "too late to run test $typ"      date ; echo "too late to run test $typ"
95      continue      continue
96    fi    fi
97      if test $sepDir = 0 -a "x$option" != x -a  $tt != $last_Tst ; then
98        echo "using option='$option' prevent multi-tests => skip test $typ"
99        continue
100      fi
101    #- clean-up old output files    #- clean-up old output files
102    rm -f $tdir/output_${typ}*    rm -f $tdir/output_${typ}*
103    touch $tdir/output_$tt    touch $tdir/output_$tt
104    if test $sepDir = 1 ; then    if test $sepDir = 1 ; then
105      new_dir="MITgcm_$typ"      new_dir="MITgcm_$typ"
106      if test -d $new_dir/CVS -a $checkOut = '0' ; then      if test -d $new_dir/CVS -a $checkOut != 2 ; then
107        pushd $new_dir        pushd $new_dir
108        if test $tt != $typ ; then        if test $tt != $typ ; then
109          ( cd verification ; ../tools/do_tst_2+2 -clean )          ( cd verification ; ../tools/do_tst_2+2 -clean )
110        fi        fi
111        echo -n "Update the MITgcm code using: $cmdCVS ..."        if test $checkOut = 1 ; then
112        $cmdCVS update -P -d          echo -n "Update the MITgcm code using: $cmdCVS ..."
113        echo "  done"          $cmdCVS update -P -d
114            echo "  done"
115          fi
116      else      else
117        test -e $new_dir  &&  rm -rf $new_dir        test -e $new_dir  &&  rm -rf $new_dir
118        mkdir $new_dir        mkdir $new_dir
# Line 167  do Line 176  do
176      export LM_LICENSE_FILE=$PGI/license.dat      export LM_LICENSE_FILE=$PGI/license.dat
177    fi    fi
178    
179    if test $sepDir = 0 -a $checkOut = '0' -a  $tt = $firstTst ; then    if test $sepDir = 0 -a "x$option" = x -a $tt = $firstTst -a $checkOut != 2 ; then
180  #-- cleaning:  #-- cleaning:
181      echo "======================"      echo "======================"
182      echo "Cleaning test directories:"   | tee -a $tdir/output_$tt      echo "Cleaning test directories:"   | tee -a $tdir/output_$tt

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.22