/[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.11 by jmc, Fri Jun 26 16:51:23 2009 UTC revision 1.12 by jmc, Thu May 6 14:02:35 2010 UTC
# Line 14  export LC_ALL="en_US.UTF-8" Line 14  export LC_ALL="en_US.UTF-8"
14  #  Turn off stack limit for FIZHI & AD-tests  #  Turn off stack limit for FIZHI & AD-tests
15  ulimit -s unlimited  ulimit -s unlimited
16    
17    #- method to acces CVS:
18     # export CVSROOT='/u/gcmpack'
19     # export CVSROOT=':ext:@mitgcm.org:/u/gcmpack'
20     # export CVS_RSH='ssh' ; cvs co -P MITgcm > /dev/null
21     # cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null
22    cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack'
23    cmdCVS='cvs -d /u/gcmpack'
24    
25  TESTDIR="/tmp/jmc/test_"`hostname -s`  TESTDIR="/tmp/jmc/test_"`hostname -s`
26  MC=10  MC=10
27  checkOut=1  checkOut=1
28  sepDir=0  sepDir=0
29  option=  option=
30  #tst_list='adm g77 pgi gfo ifc mth'  #tst_list='g77 adm ifc mth pgi+rs'
31  tst_list='adm g77 gfo+rs mth'  tst_list='adm g77 gfo+rs mth'
32    
33  #option="-nc" ; checkOut=0  #option="-nc" ; checkOut=0
# Line 29  tdir=$TESTDIR Line 37  tdir=$TESTDIR
37  if test $checkOut = '0' ; then  if test $checkOut = '0' ; then
38   if test -e $tdir/MITgcm/CVS ; then   if test -e $tdir/MITgcm/CVS ; then
39    echo $tdir/MITgcm/CVS 'exist'    echo $tdir/MITgcm/CVS 'exist'
40    echo -n "Update the MITgcm code from CVS pserver..."    echo -n "Update the MITgcm code using: $cmdCVS ..."
41    cd $tdir/MITgcm    cd $tdir/MITgcm
42    if test $sepDir = 1 ; then    if test $sepDir = 1 ; then
43     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null      $cmdCVS update -P -d > /dev/null
44    else    else
45     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d      $cmdCVS update -P -d
46    fi    fi
47    echo "  done"    echo "  done"
48   else   else
# Line 43  if test $checkOut = '0' ; then Line 51  if test $checkOut = '0' ; then
51   fi   fi
52  fi  fi
53  if test $checkOut = '1' ; then  if test $checkOut = '1' ; then
54    echo -n "Creating a temp directory ..."    if test -e $tdir ; then
55    if test -e $tdir      echo -n "Removing working copy: $tdir/MITgcm ..."
56    then test -e $tdir/MITgcm  &&  rm -rf $tdir/MITgcm      test -e $tdir/MITgcm  &&  rm -rf $tdir/MITgcm
57    else mkdir $tdir    else
58        echo -n "Creating a working dir: $tdir ..."
59        mkdir $tdir
60    fi    fi
61    echo "  done"    echo "  done"
62    echo -n "Downloading the MITgcm code from CVS pserver..."    echo -n "Downloading the MITgcm code using: $cmdCVS ..."
63    cd $tdir    cd $tdir
64   #export CVSROOT='/u/gcmpack'    $cmdCVS co -P MITgcm > /dev/null
  #export CVSROOT=':ext:@mitgcm.org:/u/gcmpack'  
  #export CVS_RSH='ssh'  
  #cvs co -P MITgcm > /dev/null  
   cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null  
65    echo "  done"    echo "  done"
66  else  else
67    cd $tdir    cd $tdir
# Line 76  do Line 82  do
82    new_dir="MITgcm_$typ"    new_dir="MITgcm_$typ"
83    if test -d $new_dir/CVS -a $checkOut = '0' ; then    if test -d $new_dir/CVS -a $checkOut = '0' ; then
84      pushd $new_dir      pushd $new_dir
85      echo -n "Update the MITgcm code from CVS pserver..."      echo -n "Update the MITgcm code using: $cmdCVS ..."
86      cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d      $cmdCVS update -P -d
87      echo "  done"      echo "  done"
88    else    else
89      test -e $new_dir  &&  rm -rf $new_dir      test -e $new_dir  &&  rm -rf $new_dir
# Line 253  do Line 259  do
259    export PGI=/usr/local/pkg/pgi/pgi-6.1-5    export PGI=/usr/local/pkg/pgi/pgi-6.1-5
260    echo "Running testreport using:"    echo "Running testreport using:"
261    comm="./testreport -match $MC -dd"    comm="./testreport -match $MC -dd"
262      #comm="$comm -skd tutorial_advection_in_gyre"
263    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
264      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
265    fi    fi
# Line 264  do Line 271  do
271    echo    echo
272    echo "Running testreport using:"    echo "Running testreport using:"
273    comm="./testreport -match $MC -q -a jmc@mitgcm.org"    comm="./testreport -match $MC -q -a jmc@mitgcm.org"
274      #comm="$comm -skd tutorial_advection_in_gyre"
275    if test "x$OPTFILE" != x ; then    if test "x$OPTFILE" != x ; then
276      comm="$comm -of=$OPTFILE"      comm="$comm -of=$OPTFILE"
277    fi    fi

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.22