Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-Fire-merge.git] / test / em_fire / hill_med / 1x12.pbs
blob8ffb4b51ab2b1cd9cc43a2709225aecc96e53380
1 #!/bin/bash
2 # copy this script to your run directory and modify as desired
4 # Set the number of nodes and processes per node
5 # each node contains 12 processing cores
6 #PBS -l nodes=1:ppn=12
8 # Set the maximum amount of the time the job will run (HH:MM:SS)
9 #PBS -l walltime=03:00:00
11 # Give the job a name
12 #PBS -N hill_m_1x12
14 # Keep all environment variables from the current session (PATH, LD_LIBRARY_PATH, etc)
15 #PBS -V
17 # Merge stderr and stdout
18 #PBS -j oe
20 # Set log file
21 #PBS -o 1x12.log
23 # Change to the run directory (where job was submitted)
24 cd $PBS_O_WORKDIR
26 WD=1x12.dir
27 rm -rf $WD
28 mkdir $WD
29 cd $WD
30 pwd
31 ln -s ../ideal.exe .
32 #ln -s ../input_fc .
33 #ln -s ../input_ht .
34 #ln -s ../input_lu .
35 ln -s ../input_sounding .
36 #ln -s ../LANDUSE.TBL .
37 ln -s ../namelist.fire .
38 ln -s ../namelist.input .
39 ln -s ../wrf.exe .
41 cat $PBS_NODEFILE | sort -u > nodes
42 mpirun_rsh -np 1 -hostfile nodes OMP_NUM_THREADS=1 ./ideal.exe
43 mpirun_rsh -np 1 -hostfile nodes OMP_NUM_THREADS=12 ./wrf.exe