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

Diff of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mth

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

revision 1.17 by jmc, Thu Sep 8 13:39:59 2011 UTC revision 1.18 by jmc, Thu Nov 3 17:36:33 2011 UTC
# Line 12  Line 12 
12  if test -f /etc/profile.d/modules.sh ; then  if test -f /etc/profile.d/modules.sh ; then
13      . /etc/profile.d/modules.sh      . /etc/profile.d/modules.sh
14  fi  fi
15  # Note: added to pass big test (the 2 fizhi-cs-* test)  # Note: added "ulimit -s unlimited" in file "~/.bashrc"
16  ulimit -s unlimited  # to pass big test (the 2 fizhi-cs-* test & adjoint tests) with MPI
17    
18    dNam='aces'
19    TST_DIR="$HOME/test_$dNam"
20    echo "start from TST_DIR='$TST_DIR' at: "`date`
21    
22  umask 0022  umask 0022
23  #- to get case insensitive "ls" (and order of tested experiments)  #- to get case insensitive "ls" (and order of tested experiments)
24  export LC_ALL="en_US.UTF-8"  export LC_ALL="en_US.UTF-8"
25    
 TST_DIR="/home/jmc/test_ACES"  
26  HERE=$TST_DIR/output  HERE=$TST_DIR/output
 #cd $HERE  
   
27  sfx='mth'  sfx='mth'
28   module add ifc/9.0.021 icc/9.0.021 intel/9.0   module add ifc/9.0.021 icc/9.0.021 intel/9.0
29   module add netcdf/3.6.1/icc   module add netcdf/3.6.1/icc
# Line 41  checkOut=1 Line 42  checkOut=1
42  gcmDIR="MITgcm_$sfx"  gcmDIR="MITgcm_$sfx"
43  cd $TST_DIR  cd $TST_DIR
44  #- check for disk space:  #- check for disk space:
45  dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`  #dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
46  if [ $dsp -gt 99 ] ; then  #if [ $dsp -gt 99 ] ; then
47    dsp=`df -P . | tail -1 | awk '{print $4}'`
48    if [ $dsp -le 3200000 ] ; then
49    echo 'Not enough space on this disk => do not run testreport.'    echo 'Not enough space on this disk => do not run testreport.'
50    df .    df .
51    exit    exit
52  fi  fi
53  if [ $checkOut -eq 1 ] ; then  if [ $checkOut -eq 1 ] ; then
54    if test -d $gcmDIR/CVS ; then    if test -d $gcmDIR/CVS ; then
55      /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?      /bin/rm -rf $gcmDIR/verification/tr_${dNam}-${sfx}_????????_?
56  #   ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )  #   ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
57      echo "cvs update of dir $gcmDIR :"      echo "cvs update of dir $gcmDIR :"
58      ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1      ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
# Line 83  else Line 86  else
86    exit    exit
87  fi  fi
88    
89  echo ./testreport $options -of $OPTFILE -odir aces-$sfx  echo ./testreport $options -of $OPTFILE -odir ${dNam}-$sfx
90  ./testreport $options -of $OPTFILE -odir aces-$sfx  ./testreport $options -of $OPTFILE -odir ${dNam}-$sfx
91    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.22