/[MITgcm]/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi
ViewVC logotype

Diff of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mpi

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

revision 1.6 by jmc, Thu May 22 22:32:48 2008 UTC revision 1.9 by jmc, Sat Feb 28 20:54:33 2009 UTC
# Line 37  EXE="mpirun -machinefile $MF -v -np $NCP Line 37  EXE="mpirun -machinefile $MF -v -np $NCP
37  # EOF  # EOF
38  gcmDIR="MITgcm_$sfx"  gcmDIR="MITgcm_$sfx"
39  cd $TST_DIR  cd $TST_DIR
40  if test $checkOut = '1' ; then  #- check for disk space:
41    dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
42    if [ $dsp -gt 99 ] ; then
43      echo 'Not enough space on this disk => do not run testreport.'
44      df .
45      exit
46    fi
47    if [ $checkOut -eq 1 ] ; then
48      if test -d $gcmDIR/CVS ; then
49        ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
50        echo "cvs update of dir $gcmDIR :"
51        ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
52        /bin/rm -rf $gcmDIR/verification/??_aces-${sfx}_????????_?
53      else
54        echo "no dir: $gcmDIR/CVS => try a fresh check-out"
55        checkOut=2
56      fi
57    fi
58    if [ $checkOut -eq 2 ] ; then
59    if test -e $gcmDIR ; then    if test -e $gcmDIR ; then
60       rm -rf $gcmDIR       rm -rf $gcmDIR
61    fi    fi
# Line 47  if test $checkOut = '1' ; then Line 65  if test $checkOut = '1' ; then
65    /usr/bin/find $gcmDIR -type f | xargs chmod g+r    /usr/bin/find $gcmDIR -type f | xargs chmod g+r
66  else  else
67    if test -e $gcmDIR/verification ; then    if test -e $gcmDIR/verification ; then
68       echo "dir $gcmDIR exist"       echo "dir $gcmDIR/verification exist"
69    else    else
70       echo "no dir $gcmDIR/verification => exit"       echo "no dir $gcmDIR/verification => exit"
71       exit       exit
# Line 55  else Line 73  else
73  fi  fi
74    
75  cd $gcmDIR/verification  cd $gcmDIR/verification
76  echo ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx  echo ./testreport $options -of $OPTFILE -command \"$EXE\" -odir aces-$sfx
77  ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx  ./testreport $options -of $OPTFILE -command "$EXE" -odir aces-$sfx
78    
79    echo ../tools/do_tst_2+2 -mpi -exe \"$EXE\" -o aces-$sfx -a NONE
80    ../tools/do_tst_2+2 -mpi -exe "$EXE" -o aces-$sfx -a NONE
81    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22