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

Annotation of /MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mth

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


Revision 1.11 - (hide annotations) (download)
Sun Jan 24 18:16:47 2010 UTC (14 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62d
Changes since 1.10: +3 -2 lines
minor change (remove earlier output dir before instead of after updating the code)

1 jmc 1.1 #!/bin/bash
2     #
3 jmc 1.4 #PBS -q four-twelve
4 jmc 1.1 #PBS -N tst_mth
5     #PBS -l nodes=1:ppn=2
6     #PBS -e /home/jmc/test_ACES/output/tst_mth.stderr
7     #PBS -o /home/jmc/test_ACES/output/tst_mth.stdout
8    
9 jmc 1.11 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mth,v 1.10 2009/06/16 21:32:22 jmc Exp $
10 jmc 1.1 # $Name: $
11    
12 jmc 1.10 if test -f /etc/profile.d/modules.sh ; then
13     . /etc/profile.d/modules.sh
14     fi
15     # Note: added to pass big test (the 2 fizhi-cs-* test)
16     ulimit -s unlimited
17    
18 jmc 1.5 umask 0022
19 jmc 1.10 #- to get case insensitive "ls" (and order of tested experiments)
20     export LC_ALL="en_US.UTF-8"
21    
22 jmc 1.5 TST_DIR="/home/jmc/test_ACES/gcm_tests"
23     HERE='/home/jmc/test_ACES/output'
24     cd $HERE
25    
26     sfx='mth'
27 jmc 1.1 module add ifc/9.0.021 icc/9.0.021 intel/9.0
28 jmc 1.9 OPTFILE="../tools/build_options/linux_ia32_ifort.aces"
29 jmc 1.5 options='-j 2 -mth -match 10'
30 jmc 1.1 export OMP_NUM_THREADS=2
31     export KMP_STACKSIZE=400m
32    
33 jmc 1.6 checkOut=1
34     #options="$options -nc" ; checkOut=0
35     #options="$options -q" ; checkOut=0
36    
37 jmc 1.5 gcmDIR="MITgcm_$sfx"
38     cd $TST_DIR
39 jmc 1.7 #- check for disk space:
40     dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'`
41     if [ $dsp -gt 99 ] ; then
42     echo 'Not enough space on this disk => do not run testreport.'
43     df .
44     exit
45     fi
46     if [ $checkOut -eq 1 ] ; then
47     if test -d $gcmDIR/CVS ; then
48 jmc 1.11 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
49     # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
50 jmc 1.7 echo "cvs update of dir $gcmDIR :"
51     ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d )
52     else
53     echo "no dir: $gcmDIR/CVS => try a fresh check-out"
54     checkOut=2
55     fi
56     fi
57     if [ $checkOut -eq 2 ] ; then
58 jmc 1.6 if test -e $gcmDIR ; then
59     rm -rf $gcmDIR
60     fi
61     cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
62     # cvs co MITgcm
63     /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
64     /usr/bin/find $gcmDIR -type f | xargs chmod g+r
65     else
66     if test -e $gcmDIR/verification ; then
67 jmc 1.8 echo "dir $gcmDIR/verification exist"
68 jmc 1.6 else
69     echo "no dir $gcmDIR/verification => exit"
70     exit
71     fi
72 jmc 1.1 fi
73    
74 jmc 1.5 cd $gcmDIR/verification
75     echo ./testreport $options -of $OPTFILE -odir aces-$sfx
76     ./testreport $options -of $OPTFILE -odir aces-$sfx
77 jmc 1.1

  ViewVC Help
Powered by ViewVC 1.1.22