1 |
#!/bin/csh |
2 |
# invoking MPICH/MPICH-GM mpirun on ACES Linux clusters |
3 |
# |
4 |
|
5 |
#PBS -q four |
6 |
#PBS -N offline |
7 |
#PBS -l nodes=4:ppn=2,walltime=00:10:00 |
8 |
#PBS -e myrunMPICH.stderr |
9 |
#PBS -o myrunMPICH.stdout |
10 |
#PBS -m ae |
11 |
#PBS -V |
12 |
|
13 |
if ( -f /etc/profile.d/modules.csh ) then |
14 |
source /etc/profile.d/modules.csh |
15 |
endif |
16 |
|
17 |
module add mpich/pgi |
18 |
|
19 |
|
20 |
set verbose |
21 |
cd /home/helen/MITgcm/verification/offline/run |
22 |
cat $PBS_NODEFILE | sort | uniq > mf |
23 |
set ncpus = ( `wc -l mf | awk '{print $1}'` ) |
24 |
# mpirun.ch_gm -machinefile mf -s -v --gm-kill 5 -np $ncpus ./mitgcmuv |
25 |
mpirun -machinefile mf -np $ncpus ./mitgcmuv |