--- MITgcm/tools/example_scripts/csail/test_dickens 2009/06/02 17:08:48 1.7 +++ MITgcm/tools/example_scripts/csail/test_dickens 2009/06/15 02:06:56 1.8 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/csail/test_dickens,v 1.7 2009/06/02 17:08:48 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/example_scripts/csail/test_dickens,v 1.8 2009/06/15 02:06:56 jmc Exp $ # Ed Hill @@ -13,9 +13,13 @@ MC=10 checkOut=1 sepDir=0 +option= #tst_list='adm g77 pgi gfo ifc mth' tst_list='adm g77 gfo+rs mth' +#option="-nc" ; checkOut=0 +#option="-q" ; checkOut=0 + # Turn off stack limit for FIZHI ulimit -s unlimited @@ -25,7 +29,11 @@ echo $tdir/MITgcm/CVS 'exist' echo -n "Update the MITgcm code from CVS pserver..." cd $tdir/MITgcm - cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null + if test $sepDir = 1 ; then + cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d > /dev/null + else + cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d + fi echo " done" cd $tdir else @@ -61,10 +69,17 @@ rm -f $tdir/output_${typ}* if test $sepDir = 1 ; then new_dir="MITgcm_$typ" - test -e $new_dir && rm -rf $new_dir - mkdir $new_dir - pushd $new_dir - cp -ra ../MITgcm/* . + if test -d $new_dir/CVS -a $checkOut = '0' ; then + pushd $new_dir + echo -n "Update the MITgcm code from CVS pserver..." + cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d + echo " done" + else + test -e $new_dir && rm -rf $new_dir + mkdir $new_dir + pushd $new_dir + cp -ra ../MITgcm/* . + fi else pushd MITgcm fi @@ -89,6 +104,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_$typ 2>&1 @@ -117,6 +133,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_$typ 2>&1 @@ -145,6 +162,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_$typ 2>&1 @@ -161,6 +179,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_$typ 2>&1 @@ -190,6 +209,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_$typ 2>&1 @@ -220,6 +240,7 @@ if test "x$OPTFILE" != x ; then comm="$comm -of=$OPTFILE" fi + if test "x$option" != x ; then comm="$comm $option" ; fi echo " \"$comm\"" echo "======================" $comm > $tdir/output_${typ}_1 2>&1