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 |
|
|
|
umask 0022 |
|
|
TST_DIR="/home/jmc/test_ACES/gcm_tests" |
|
|
HERE='/home/jmc/test_ACES/output' |
|
|
cd $HERE |
|
|
|
|
|
FC=ifort |
|
|
|
|
28 |
# cat << EOF > $HERE"/.cvspass" |
# cat << EOF > $HERE"/.cvspass" |
29 |
# /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0= |
# /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0= |
30 |
# EOF |
# EOF |
31 |
tmpDIR=${TST_DIR}"/tmp_mth" |
gcmDIR="MITgcm_$sfx" |
32 |
if test -e $tmpDIR ; then |
cd $TST_DIR |
33 |
rm -rf $tmpDIR |
if test -e $gcmDIR ; then |
34 |
|
rm -rf $gcmDIR |
35 |
fi |
fi |
36 |
mkdir $tmpDIR |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P -d $gcmDIR MITgcm > /dev/null 2>&1 |
|
cd $tmpDIR |
|
|
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1 |
|
37 |
# cvs co MITgcm |
# cvs co MITgcm |
38 |
/usr/bin/find $tmpDIR -type d | xargs chmod g+rxs |
/usr/bin/find $gcmDIR -type d | xargs chmod g+rxs |
39 |
/usr/bin/find $tmpDIR -type f | xargs chmod g+r |
/usr/bin/find $gcmDIR -type f | xargs chmod g+r |
40 |
|
|
41 |
cd MITgcm/verification |
cd $gcmDIR/verification |
42 |
OPTFILE="../tools/build_options/linux_ia32_"$FC".aces+mth" |
echo ./testreport $options -of $OPTFILE -odir aces-$sfx |
43 |
# ./testreport -j 2 -mth -of $OPTFILE -command "$EXE" -a 'edhill@mitgcm.org' |
./testreport $options -of $OPTFILE -odir aces-$sfx |
|
echo ./testreport -j 2 -mth -of $OPTFILE |
|
|
./testreport -j 2 -mth -of $OPTFILE |
|
44 |
|
|