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.5 2008/01/25 15:17:20 jmc Exp $ |
10 |
# $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 |
18 |
. /etc/profile.d/modules.sh |
19 |
fi |
20 |
|
21 |
sfx='mth' |
22 |
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 |
26 |
export KMP_STACKSIZE=400m |
27 |
|
28 |
checkOut=1 |
29 |
#options="$options -nc" ; checkOut=0 |
30 |
#options="$options -q" ; checkOut=0 |
31 |
|
32 |
# cat << EOF > $HERE"/.cvspass" |
33 |
# /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0= |
34 |
# EOF |
35 |
gcmDIR="MITgcm_$sfx" |
36 |
cd $TST_DIR |
37 |
if test $checkOut = '1' ; then |
38 |
if test -e $gcmDIR ; then |
39 |
rm -rf $gcmDIR |
40 |
fi |
41 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1 |
42 |
# cvs co MITgcm |
43 |
/usr/bin/find $gcmDIR -type d | xargs chmod g+rxs |
44 |
/usr/bin/find $gcmDIR -type f | xargs chmod g+r |
45 |
else |
46 |
if test -e $gcmDIR/verification ; then |
47 |
echo "dir $gcmDIR exist" |
48 |
else |
49 |
echo "no dir $gcmDIR/verification => exit" |
50 |
exit |
51 |
fi |
52 |
fi |
53 |
|
54 |
cd $gcmDIR/verification |
55 |
echo ./testreport $options -of $OPTFILE -odir aces-$sfx |
56 |
./testreport $options -of $OPTFILE -odir aces-$sfx |