-
Notifications
You must be signed in to change notification settings - Fork 18
/
3x3.pbs
50 lines (40 loc) · 1.06 KB
/
3x3.pbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# copy this script to your run directory and modify as desired
# Set the number of nodes and processes per node
# each node contains 12 processing cores
#PBS -l nodes=1:ppn=9
# Set the maximum amount of the time the job will run (HH:MM:SS)
#PBS -l walltime=06:00:00
# Give the job a name
#PBS -N hill_3x3
# Keep all environment variables from the current session (PATH, LD_LIBRARY_PATH, etc)
#PBS -V
# Merge stderr and stdout
#PBS -j oe
# Set log file
#PBS -o 3x3.log
# Change to the run directory (where job was submitted)
cd $PBS_O_WORKDIR
WD=3x3
rm -rf $WD
mkdir $WD
cd $WD
pwd
ln -s ../ideal.exe .
#ln -s ../input_fc .
#ln -s ../input_ht .
#ln -s ../input_lu .
ln -s ../input_sounding .
#ln -s ../LANDUSE.TBL .
ln -s ../namelist.fire .
ln -s ../namelist.input .
ln -s ../wrf.exe .
if [ -e ../input_tign_g ]
then
ln -s ../input_tign_g .
fi
cat $PBS_NODEFILE | sort -u > node
cat node node node > nodes
mpirun_rsh -np 1 -hostfile nodes OMP_NUM_THREADS=1 ./ideal.exe
mv rsl.error.0000 ideal.log
mpirun_rsh -np 3 -hostfile nodes OMP_NUM_THREADS=3 ./wrf.exe