1 |
jmc |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
#PBS -q long |
4 |
|
|
#PBS -N tst_ifc |
5 |
|
|
#PBS -l nodes=2:ppn=2 |
6 |
|
|
#PBS -e /home/jmc/test_ACES/output/tst_ifc.stderr |
7 |
|
|
#PBS -o /home/jmc/test_ACES/output/tst_ifc.stdout |
8 |
|
|
# #PBS -V |
9 |
|
|
# ^- commented out => do not export env. variable ! |
10 |
|
|
# since head node environment (& module) is too different from computer node |
11 |
|
|
|
12 |
|
|
# $Header: $ |
13 |
|
|
# $Name: $ |
14 |
|
|
|
15 |
|
|
if test -f /etc/profile.d/modules.sh ; then |
16 |
|
|
. /etc/profile.d/modules.sh |
17 |
|
|
fi |
18 |
|
|
module add mpich/intel |
19 |
|
|
|
20 |
|
|
TST_DIR="/home/jmc/test_ACES/gcm_tests" |
21 |
|
|
HERE='/home/jmc/test_ACES/output' |
22 |
|
|
cd $HERE |
23 |
|
|
|
24 |
|
|
FC=ifort |
25 |
|
|
MF=$HERE"/mf_"$FC |
26 |
|
|
cat $PBS_NODEFILE | sort | uniq > $MF |
27 |
|
|
NCPU=`wc -l $MF | awk '{print $1}'` |
28 |
|
|
EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv" |
29 |
|
|
|
30 |
|
|
# cat << EOF > $HERE"/.cvspass" |
31 |
|
|
# /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0= |
32 |
|
|
# EOF |
33 |
|
|
umask 0022 |
34 |
|
|
tmpDIR=${TST_DIR}"/tmp_ifc" |
35 |
|
|
if test -e $tmpDIR ; then |
36 |
|
|
rm -rf $tmpDIR |
37 |
|
|
fi |
38 |
|
|
mkdir $tmpDIR |
39 |
|
|
cd $tmpDIR |
40 |
|
|
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1 |
41 |
|
|
# cvs co MITgcm |
42 |
|
|
/usr/bin/find $tmpDIR -type d | xargs chmod g+rxs |
43 |
|
|
/usr/bin/find $tmpDIR -type f | xargs chmod g+r |
44 |
|
|
|
45 |
|
|
cd MITgcm/verification |
46 |
|
|
OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_aces" |
47 |
|
|
# ./testreport -j 2 -mpi -of $OPTFILE -command "$EXE" -a 'edhill@mitgcm.org' |
48 |
|
|
echo ./testreport -j 2 -mpi -of $OPTFILE -command "$EXE" |
49 |
|
|
./testreport -j 2 -mpi -of $OPTFILE -command "$EXE" |
50 |
|
|
|