Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-Fire-merge.git] / test / em_fire / ndwi / 12x1.gross
blob636f1427619a3019a5979ef858ba830155ec6c98
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=2:ppn=6
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_12x1
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 12x1.log
23 # Change to the run directory (where job was submitted)
24 cd $PBS_O_WORKDIR
26 WD=12x1
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 .
40 if [ -e ../input_tign_g ]
41 then
42 ln -s ../input_tign_g .
45 #cat $PBS_NODEFILE | sort -u > nodes
46 cat $PBS_NODEFILE > nodes
47 mpirun_rsh -np 1 -hostfile nodes OMP_NUM_THREADS=1 ./ideal.exe
48 mv rsl.error.0000 ideal.error.log
49 mv rsl.out.0000 ideal.out.log
50 mpirun_rsh -np 12 -hostfile nodes OMP_NUM_THREADS=1 ./wrf.exe