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

Diff of /MITgcm/tools/example_scripts/ACESgrid/aces_test_op64_tuv

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

revision 1.1 by jmc, Fri Dec 14 19:30:35 2007 UTC revision 1.8 by jmc, Fri Jun 26 16:10:42 2009 UTC
# Line 5  Line 5 
5  #PBS -l nodes=1:ppn=2  #PBS -l nodes=1:ppn=2
6  #PBS -e /home/jmc/test_ACES/output/tst_tuv.stderr  #PBS -e /home/jmc/test_ACES/output/tst_tuv.stderr
7  #PBS -o /home/jmc/test_ACES/output/tst_tuv.stdout  #PBS -o /home/jmc/test_ACES/output/tst_tuv.stdout
8    
9  # $Header$  # $Header$
10  # $Name$  # $Name$
11    
12    # ACES-grid PBS-batch script: test using open64 + "Trap Un-initialised Var." option
13    
14  if test -f /etc/profile.d/modules.sh ; then  if test -f /etc/profile.d/modules.sh ; then
15      . /etc/profile.d/modules.sh      . /etc/profile.d/modules.sh
16  fi  fi
17  module add open64  # Note: added to pass big test (the 2 fizhi-cs-* test)
18  export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized  ulimit -s unlimited
19    
20  umask 0022  umask 0022
21    #- to get case insensitive "ls" (and order of tested experiments)
22    export LC_ALL="en_US.UTF-8"
23    
24  TST_DIR="/home/jmc/test_ACES/gcm_tests"  TST_DIR="/home/jmc/test_ACES/gcm_tests"
25  HERE='/home/jmc/test_ACES/output'  HERE='/home/jmc/test_ACES/output'
26  cd $HERE  cd $HERE
27    
28  MC=10  sfx='tuv'
29  FC=open64  module add open64
30    OPTFILE="../tools/build_options/linux_ia32_open64.trapuv"
31    options='-j 2 -gsl -match 10'
32    export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
33    
34  # cat << EOF > $HERE"/.cvspass"  checkOut=1
35  # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=  #options="$options -nc" ; checkOut=0
36  # EOF  #options="$options -q"  ; checkOut=0
37  tmpDIR=${TST_DIR}"/tmp_tuv"  
38  if test -e $tmpDIR ; then  gcmDIR="MITgcm_$sfx"
39      rm -rf $tmpDIR  cd $TST_DIR
40    #- 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        echo "cvs update of dir $gcmDIR :"
50        ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
51        /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
52      else
53        echo "no dir: $gcmDIR/CVS => try a fresh check-out"
54        checkOut=2
55      fi
56  fi  fi
57  mkdir $tmpDIR  if [ $checkOut -eq 2 ] ; then
58  cd $tmpDIR    if test -e $gcmDIR ; then
59  cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1       rm -rf $gcmDIR
60  #  cvs co MITgcm    fi
61  /usr/bin/find $tmpDIR -type d | xargs chmod g+rxs    cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
62  /usr/bin/find $tmpDIR -type f | xargs chmod g+r  # cvs co MITgcm
63      /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
64  cd MITgcm/verification    /usr/bin/find $gcmDIR -type f | xargs chmod g+r
65  OPTFILE="../tools/build_options/linux_ia32_"$FC".trapuv"  else
66  echo ./testreport -j 2 -gsl -match $MC -of $OPTFILE -odir aces-tuv    if test -e $gcmDIR/verification ; then
67  ./testreport -j 2 -gsl -match $MC -of $OPTFILE -odir aces-tuv       echo "dir $gcmDIR/verification exist"
68      else
69         echo "no dir $gcmDIR/verification => exit"
70         exit
71      fi
72    fi
73    
74    cd $gcmDIR/verification
75    echo ./testreport $options -of $OPTFILE -odir aces-$sfx
76    ./testreport $options -of $OPTFILE -odir aces-$sfx
77    
78    echo -n 'run ./testreport -clean ...'
79    ./testreport -clean > /dev/null 2>&1
80    echo -n ' done at: ' ; date
81    

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

  ViewVC Help
Powered by ViewVC 1.1.22