/[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.7 by jmc, Tue Jun 2 17:08:48 2009 UTC revision 1.8 by jmc, Mon Jun 15 02:06:56 2009 UTC
# Line 13  TESTDIR="/tmp/jmc/test_"`hostname -s` Line 13  TESTDIR="/tmp/jmc/test_"`hostname -s`
13  MC=10  MC=10
14  checkOut=1  checkOut=1
15  sepDir=0  sepDir=0
16    option=
17  #tst_list='adm g77 pgi gfo ifc mth'  #tst_list='adm g77 pgi gfo ifc mth'
18  tst_list='adm g77 gfo+rs mth'  tst_list='adm g77 gfo+rs mth'
19    
20    #option="-nc" ; checkOut=0
21    #option="-q"  ; checkOut=0
22    
23  #  Turn off stack limit for FIZHI  #  Turn off stack limit for FIZHI
24  ulimit -s unlimited  ulimit -s unlimited
25    
# Line 25  if test $checkOut = '0' ; then Line 29  if test $checkOut = '0' ; then
29    echo $tdir/MITgcm/CVS 'exist'    echo $tdir/MITgcm/CVS 'exist'
30    echo -n "Update the MITgcm code from CVS pserver..."    echo -n "Update the MITgcm code from CVS pserver..."
31    cd $tdir/MITgcm    cd $tdir/MITgcm
32    cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null    if test $sepDir = 1 ; then
33       cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null
34      else
35       cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d
36      fi
37    echo "  done"    echo "  done"
38    cd $tdir    cd $tdir
39   else   else
# Line 61  do Line 69  do
69   rm -f $tdir/output_${typ}*   rm -f $tdir/output_${typ}*
70   if test $sepDir = 1 ; then   if test $sepDir = 1 ; then
71    new_dir="MITgcm_$typ"    new_dir="MITgcm_$typ"
72    test -e $new_dir  &&  rm -rf $new_dir    if test -d $new_dir/CVS -a $checkOut = '0' ; then
73    mkdir $new_dir      pushd $new_dir
74    pushd $new_dir      echo -n "Update the MITgcm code from CVS pserver..."
75    cp -ra ../MITgcm/* .      cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d
76        echo "  done"
77      else
78        test -e $new_dir  &&  rm -rf $new_dir
79        mkdir $new_dir
80        pushd $new_dir
81        cp -ra ../MITgcm/* .
82      fi
83   else   else
84    pushd MITgcm    pushd MITgcm
85   fi   fi
# Line 89  do Line 104  do
104    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
105      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
106    fi    fi
107      if test "x$option" != x ; then comm="$comm $option" ; fi
108    echo "  \"$comm\""    echo "  \"$comm\""
109    echo "======================"    echo "======================"
110    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 117  do Line 133  do
133    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
134      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
135    fi    fi
136      if test "x$option" != x ; then comm="$comm $option" ; fi
137    echo "  \"$comm\""    echo "  \"$comm\""
138    echo "======================"    echo "======================"
139    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 145  do Line 162  do
162    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
163      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
164    fi    fi
165      if test "x$option" != x ; then comm="$comm $option" ; fi
166    echo "  \"$comm\""    echo "  \"$comm\""
167    echo "======================"    echo "======================"
168    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 161  do Line 179  do
179    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
180      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
181    fi    fi
182      if test "x$option" != x ; then comm="$comm $option" ; fi
183    echo "  \"$comm\""    echo "  \"$comm\""
184    echo "======================"    echo "======================"
185    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 190  do Line 209  do
209    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
210      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
211    fi    fi
212      if test "x$option" != x ; then comm="$comm $option" ; fi
213    echo "  \"$comm\""    echo "  \"$comm\""
214    echo "======================"    echo "======================"
215    $comm > $tdir/output_$typ 2>&1    $comm > $tdir/output_$typ 2>&1
# Line 220  do Line 240  do
240    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
241      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
242    fi    fi
243      if test "x$option" != x ; then comm="$comm $option" ; fi
244    echo "  \"$comm\""    echo "  \"$comm\""
245    echo "======================"    echo "======================"
246    $comm > $tdir/output_${typ}_1 2>&1    $comm > $tdir/output_${typ}_1 2>&1

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22