/[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.3 by jmc, Mon Sep 17 18:48:04 2007 UTC revision 1.8 by jmc, Thu Aug 28 18:35:42 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #PBS -q long  #PBS -q four-twelve
4  #PBS -N tst_mth  #PBS -N tst_mth
5  #PBS -l nodes=1:ppn=2  #PBS -l nodes=1:ppn=2
6  #PBS -e /home/jmc/test_ACES/output/tst_mth.stderr  #PBS -e /home/jmc/test_ACES/output/tst_mth.stderr
7  #PBS -o /home/jmc/test_ACES/output/tst_mth.stdout  #PBS -o /home/jmc/test_ACES/output/tst_mth.stdout
 # #PBS -V  
 #  ^- commented out => do not export env. variable !  
 #  since head node environment (& module) is too different from computer node  
8    
9  # $Header$  # $Header$
10  # $Name$  # $Name$
11    
12    umask 0022
13    TST_DIR="/home/jmc/test_ACES/gcm_tests"
14    HERE='/home/jmc/test_ACES/output'
15    cd $HERE
16    
17  if test -f /etc/profile.d/modules.sh ; then  if test -f /etc/profile.d/modules.sh ; then
18      . /etc/profile.d/modules.sh      . /etc/profile.d/modules.sh
19  fi  fi
20    
21    sfx='mth'
22  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
23    OPTFILE="../tools/build_options/linux_ia32_ifort.aces+mth"
24    options='-j 2 -mth -match 10'
25  export OMP_NUM_THREADS=2  export OMP_NUM_THREADS=2
26  export KMP_STACKSIZE=400m  export KMP_STACKSIZE=400m
27    
28  umask 0022  checkOut=1
29  TST_DIR="/home/jmc/test_ACES/gcm_tests"  #options="$options -nc" ; checkOut=0
30  HERE='/home/jmc/test_ACES/output'  #options="$options -q"  ; checkOut=0
 cd $HERE  
   
 MC=10  
 FC=ifort  
31    
32  # cat << EOF > $HERE"/.cvspass"  # cat << EOF > $HERE"/.cvspass"
33  # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=  # /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=
34  # EOF  # EOF
35  tmpDIR=${TST_DIR}"/tmp_mth"  gcmDIR="MITgcm_$sfx"
36  if test -e $tmpDIR ; then  cd $TST_DIR
37      rm -rf $tmpDIR  #- check for disk space:
38    dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
39    if [ $dsp -gt 99 ] ; then
40      echo 'Not enough space on this disk => do not run testreport.'
41      df .
42      exit
43  fi  fi
44  mkdir $tmpDIR  if [ $checkOut -eq 1 ] ; then
45  cd $tmpDIR    if test -d $gcmDIR/CVS ; then
46  cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1      echo "cvs update of dir $gcmDIR :"
47  #  cvs co MITgcm      ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
48  /usr/bin/find $tmpDIR -type d | xargs chmod g+rxs      /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
49  /usr/bin/find $tmpDIR -type f | xargs chmod g+r    else
50        echo "no dir: $gcmDIR/CVS => try a fresh check-out"
51  cd MITgcm/verification      checkOut=2
52  OPTFILE="../tools/build_options/linux_ia32_"$FC".aces+mth"    fi
53  echo ./testreport -j 2 -mth -match $MC -of $OPTFILE  fi
54  ./testreport -j 2 -mth -match $MC -of $OPTFILE  if [ $checkOut -eq 2 ] ; then
55      if test -e $gcmDIR ; then
56         rm -rf $gcmDIR
57      fi
58      cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
59    # cvs co MITgcm
60      /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
61      /usr/bin/find $gcmDIR -type f | xargs chmod g+r
62    else
63      if test -e $gcmDIR/verification ; then
64         echo "dir $gcmDIR/verification exist"
65      else
66         echo "no dir $gcmDIR/verification => exit"
67         exit
68      fi
69    fi
70    
71    cd $gcmDIR/verification
72    echo ./testreport $options -of $OPTFILE -odir aces-$sfx
73    ./testreport $options -of $OPTFILE -odir aces-$sfx
74    

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

  ViewVC Help
Powered by ViewVC 1.1.22