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

Diff of /MITgcm/tools/example_scripts/csail/test_dickens

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

revision 1.5 by jmc, Sat May 2 14:48:22 2009 UTC revision 1.10 by jmc, Wed Jun 24 23:41:42 2009 UTC
# Line 9  Line 9 
9    
10  # defaults  # defaults
11  export PATH="$PATH:/usr/local/bin"  export PATH="$PATH:/usr/local/bin"
12    #- to get case insensitive "ls" (and order of tested experiments)
13    export LC_ALL="en_US.UTF-8"
14    #  Turn off stack limit for FIZHI & AD-tests
15    ulimit -s unlimited
16    
17  TESTDIR="/tmp/jmc/test_"`hostname -s`  TESTDIR="/tmp/jmc/test_"`hostname -s`
18  MC=10  MC=10
19  checkOut=1  checkOut=1
20  sepDir=0  sepDir=0
21    option=
22  #tst_list='adm g77 pgi gfo ifc mth'  #tst_list='adm g77 pgi gfo ifc mth'
23  tst_list='adm g77 gfo+rs mth'  tst_list='adm g77 gfo+rs mth'
24    
25  #  Turn off stack limit for FIZHI  #option="-nc" ; checkOut=0
26  ulimit -s unlimited  #option="-q"  ; checkOut=0
27    
28  tdir=$TESTDIR  tdir=$TESTDIR
29  if test $checkOut = '0' ; then  if test $checkOut = '0' ; then
# Line 25  if test $checkOut = '0' ; then Line 31  if test $checkOut = '0' ; then
31    echo $tdir/MITgcm/CVS 'exist'    echo $tdir/MITgcm/CVS 'exist'
32    echo -n "Update the MITgcm code from CVS pserver..."    echo -n "Update the MITgcm code from CVS pserver..."
33    cd $tdir/MITgcm    cd $tdir/MITgcm
34    cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null    if test $sepDir = 1 ; then
35       cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null
36      else
37       cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d
38      fi
39    echo "  done"    echo "  done"
40    cd $tdir   else
  else  
41    echo -n $tdir/MITgcm 'missing ; '    echo -n $tdir/MITgcm 'missing ; '
42    checkOut=1    checkOut=1
43   fi   fi
# Line 48  if test $checkOut = '1' ; then Line 57  if test $checkOut = '1' ; then
57   #cvs co -P MITgcm > /dev/null   #cvs co -P MITgcm > /dev/null
58    cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null    cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null
59    echo "  done"    echo "  done"
60    else
61      cd $tdir
62  fi  fi
63    
64  #------------------------------------------------------------------------  #------------------------------------------------------------------------
# Line 61  do Line 72  do
72   rm -f $tdir/output_${typ}*   rm -f $tdir/output_${typ}*
73   if test $sepDir = 1 ; then   if test $sepDir = 1 ; then
74    new_dir="MITgcm_$typ"    new_dir="MITgcm_$typ"
75    test -e $new_dir  &&  rm -rf $new_dir    if test -d $new_dir/CVS -a $checkOut = '0' ; then
76    mkdir $new_dir      pushd $new_dir
77    pushd $new_dir      echo -n "Update the MITgcm code from CVS pserver..."
78    cp -ra ../MITgcm/* .      cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d
79        echo "  done"
80      else
81        test -e $new_dir  &&  rm -rf $new_dir
82        mkdir $new_dir
83        pushd $new_dir
84        cp -ra ../MITgcm/* .
85      fi
86   else   else
87    pushd MITgcm    pushd MITgcm
88   fi   fi
# Line 89  do Line 107  do
107    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
108      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
109    fi    fi
110      if test "x$option" != x ; then comm="$comm $option" ; fi
111    echo "  \"$comm\""    echo "  \"$comm\""
112    echo "======================"    echo "======================"
113    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 117  do Line 136  do
136    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
137      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
138    fi    fi
139      if test "x$option" != x ; then comm="$comm $option" ; fi
140    echo "  \"$comm\""    echo "  \"$comm\""
141    echo "======================"    echo "======================"
142    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 145  do Line 165  do
165    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
166      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
167    fi    fi
168      if test "x$option" != x ; then comm="$comm $option" ; fi
169    echo "  \"$comm\""    echo "  \"$comm\""
170    echo "======================"    echo "======================"
171    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 161  do Line 182  do
182    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
183      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
184    fi    fi
185      if test "x$option" != x ; then comm="$comm $option" ; fi
186    echo "  \"$comm\""    echo "  \"$comm\""
187    echo "======================"    echo "======================"
188    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 190  do Line 212  do
212    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
213      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
214    fi    fi
215      if test "x$option" != x ; then comm="$comm $option" ; fi
216    echo "  \"$comm\""    echo "  \"$comm\""
217    echo "======================"    echo "======================"
218    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 220  do Line 243  do
243    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
244      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
245    fi    fi
246      if test "x$option" != x ; then comm="$comm $option" ; fi
247    echo "  \"$comm\""    echo "  \"$comm\""
248    echo "======================"    echo "======================"
249    $comm > $tdir/output_${typ}_1 2>&1    $comm > $tdir/output_${typ}_1 2>&1

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

  ViewVC Help
Powered by ViewVC 1.1.22