1 |
#!/bin/bash |
2 |
# |
3 |
#PBS -q long |
4 |
#PBS -N eh3_pgf77 |
5 |
#PBS -l nodes=2:ppn=2 |
6 |
#PBS -e /home/edhill/test_outp/eh3_pgi.stderr |
7 |
#PBS -o /home/edhill/test_outp/eh3_pgi.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 |
if test -f /etc/profile.d/modules.sh ; then |
13 |
. /etc/profile.d/modules.sh |
14 |
fi |
15 |
module add mpich/pgi |
16 |
|
17 |
HERE='/home/edhill/test_outp' |
18 |
cd $HERE |
19 |
|
20 |
FC=pgf77 |
21 |
MF=$HERE"/mf_"$FC |
22 |
cat $PBS_NODEFILE | sort | uniq > $MF |
23 |
NCPU=`wc -l $MF | awk '{print $1}'` |
24 |
EXE="mpirun -machinefile $MF -v -np $NCPU ./mitgcmuv" |
25 |
|
26 |
# cat << EOF > $HERE"/.cvspass" |
27 |
# /1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0= |
28 |
# EOF |
29 |
umask 0022 |
30 |
TDIR="/net/ds-01/scratch-5/edhill/tmp_"$FC |
31 |
if test -e $TDIR ; then |
32 |
rm -rf $TDIR |
33 |
fi |
34 |
mkdir $TDIR |
35 |
cd $TDIR |
36 |
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm > /dev/null 2>&1 |
37 |
# cvs co MITgcm |
38 |
/usr/bin/find $TDIR -type d | xargs chmod g+rxs |
39 |
/usr/bin/find $TDIR -type f | xargs chmod g+r |
40 |
|
41 |
cd MITgcm/verification |
42 |
OPTFILE="../tools/build_options/linux_ia32_"$FC"+mpi_aces" |
43 |
# ./testreport -j 2 -mpi -of $OPTFILE -command "$EXE" -a 'edhill@mitgcm.org' |
44 |
./testreport -mpi -of $OPTFILE -command "$EXE" |