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

Contents 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.16 - (show annotations) (download)
Thu Sep 1 23:05:08 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.15: +11 -8 lines
improve some error messages

1 #!/bin/bash
2 #
3 #PBS -q four-twelve
4 #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 # $Header: /u/gcmpack/MITgcm/tools/example_scripts/ACESgrid/aces_test_ifc_mth,v 1.15 2011/08/17 20:45:35 jmc Exp $
10 # $Name: $
11
12 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 umask 0022
19 #- to get case insensitive "ls" (and order of tested experiments)
20 export LC_ALL="en_US.UTF-8"
21
22 TST_DIR="/home/jmc/test_ACES"
23 HERE=$TST_DIR/output
24 #cd $HERE
25
26 sfx='mth'
27 module add ifc/9.0.021 icc/9.0.021 intel/9.0
28 OPTFILE="../tools/build_options/linux_ia32_ifort.aces"
29 options='-j 2 -mth -match 10'
30 export OMP_NUM_THREADS=2
31 export KMP_STACKSIZE=400m
32
33 #- keep a copy of MPI_MFILE:
34 cp -p $PBS_NODEFILE $HERE"/mf_"$sfx
35
36 checkOut=1
37 #options="$options -nc" ; checkOut=0
38 #options="$options -q" ; checkOut=0
39
40 gcmDIR="MITgcm_$sfx"
41 cd $TST_DIR
42 #- check for disk space:
43 dsp=`df -P . | tail -1 | awk '{print $5}' | sed 's/%$//'`
44 if [ $dsp -gt 99 ] ; then
45 echo 'Not enough space on this disk => do not run testreport.'
46 df .
47 exit
48 fi
49 if [ $checkOut -eq 1 ] ; then
50 if test -d $gcmDIR/CVS ; then
51 /bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_?
52 # ( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean )
53 echo "cvs update of dir $gcmDIR :"
54 ( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1
55 RETVAL=$?
56 if test "x$RETVAL" != x0 ; then
57 echo "cvs update on '"`hostname`"' fail (return val=$RETVAL) => exit"
58 exit
59 fi
60 else
61 echo "no dir: $gcmDIR/CVS => try a fresh check-out"
62 checkOut=2
63 fi
64 fi
65 if [ $checkOut -eq 2 ] ; then
66 if test -e $gcmDIR ; then
67 rm -rf $gcmDIR
68 fi
69 cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1
70 # cvs co MITgcm
71 /usr/bin/find $gcmDIR -type d | xargs chmod g+rxs
72 /usr/bin/find $gcmDIR -type f | xargs chmod g+r
73 fi
74
75 #- change dir to $gcmDIR/verification dir:
76 if test -e $gcmDIR/verification ; then
77 if [ $checkOut -lt 2 ] ; then
78 echo " dir $gcmDIR/verification exist" ; fi
79 cd $gcmDIR/verification
80 else
81 echo "no dir: $gcmDIR/verification => exit"
82 exit
83 fi
84
85 echo ./testreport $options -of $OPTFILE -odir aces-$sfx
86 ./testreport $options -of $OPTFILE -odir aces-$sfx

  ViewVC Help
Powered by ViewVC 1.1.22