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

Contents of /MITgcm/tools/example_scripts/ACESgrid/aces_test_op64_tuv

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


Revision 1.16 - (show annotations) (download)
Thu Sep 8 13:39:59 2011 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63d, checkpoint63c
Changes since 1.15: +4 -3 lines
switch to standard optfile

1 #!/bin/bash
2 #
3 #PBS -q four-twelve
4 #PBS -N tst_tuv
5 #PBS -l nodes=1:ppn=2
6 #PBS -e /home/jmc/test_ACES/output/tst_tuv.stderr
7 #PBS -o /home/jmc/test_ACES/output/tst_tuv.stdout
8
9 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_op64_tuv,v 1.15 2011/09/01 23:05:08 jmc Exp $
10 # $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
15 . /etc/profile.d/modules.sh
16 fi
17 # Note: added to pass big test (the 2 fizhi-cs-* test)
18 ulimit -s unlimited
19
20 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"
25 HERE=$TST_DIR/output
26 #cd $HERE
27
28 sfx='tuv'
29 module add open64
30 export NETCDF_ROOT='/usr/local/pkg/netcdf/netcdf-3.5.1/g77'
31 OPTFILE="../tools/build_options/linux_ia32_open64"
32 options='-j 2 -devel -gsl -do'
33 export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
34
35 #- keep a copy of MPI_MFILE:
36 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
37
38 checkOut=1
39 #options="$options -nc" ; checkOut=0
40 #options="$options -q" ; checkOut=0
41
42 gcmDIR="MITgcm_$sfx"
43 cd $TST_DIR
44 #- check for disk space:
45 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
46 if [ $dsp -gt 99 ] ; then
47 echo 'Not enough space on this disk => do not run testreport.'
48 df .
49 exit
50 fi
51 if [ $checkOut -eq 1 ] ; then
52 if test -d $gcmDIR/CVS ; then
53 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
54 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
55 echo "cvs update of dir $gcmDIR :"
56 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
57 RETVAL=$?
58 if test "x$RETVAL" != x0 ; then
59 echo "cvs update on '"`hostname`"' fail (return val=$RETVAL) => exit"
60 exit
61 fi
62 else
63 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
64 checkOut=2
65 fi
66 fi
67 if [ $checkOut -eq 2 ] ; then
68 if test -e $gcmDIR ; then
69 rm -rf $gcmDIR
70 fi
71 # cvs co MITgcm
72 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
73 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
74 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
75 fi
76
77 #- change dir to $gcmDIR/verification dir:
78 if test -e $gcmDIR/verification ; then
79 if [ $checkOut -lt 2 ] ; then
80 echo " dir $gcmDIR/verification exist" ; fi
81 cd $gcmDIR/verification
82 else
83 echo "no dir: $gcmDIR/verification => exit"
84 exit
85 fi
86
87 echo ./testreport $options -of $OPTFILE -odir aces-$sfx
88 ./testreport $options -of $OPTFILE -odir aces-$sfx
89
90 #echo -n 'run ./testreport -clean ...'
91 #./testreport -clean > /dev/null 2>&1
92 #echo -n ' done at: ' ; date

  ViewVC Help
Powered by ViewVC 1.1.22