Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-Fire-merge.git] / test / em_fire / chem / 24x1.pbs
blob870c36b4c73d3c8a18a93f36f28d1150d0c0c1ef
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=12
8 # Set the maximum amount of the time the job will run (HH:MM:SS)
9 #PBS -l walltime=09:00:00
11 # Give the job a name
12 #PBS -N chem_24x1
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 24x1.log
23 # Change to the run directory (where job was submitted)
24 cd $PBS_O_WORKDIR
26 WD=24x1
27 rm -rf $WD
28 mkdir $WD
29 cd $WD
30 rm -f rsl.* wrfout* wrfrst* core*
31 pwd
32 ln -s ../ideal.exe .
33 #ln -s ../input_fc .
34 #ln -s ../input_ht .
35 #ln -s ../input_lu .
36 ln -s ../input_sounding .
37 ln -s ../LANDUSE.TBL .
38 ln -s ../namelist.fire .
39 ln -s ../namelist.fire_emissions .
40 ln -s ../namelist.input .
41 ln -s ../wrf.exe .
42 if [ -e ../input_tign_g ]
43 then
44 ln -s ../input_tign_g .
47 #cat $PBS_NODEFILE | sort -u > nodes
48 cat $PBS_NODEFILE > nodes
49 env > env.log
50 mpirun -np 1 -f nodes ./ideal.exe
51 mv rsl.error.0000 ideal.error.log
52 mv rsl.out.0000 ideal.out.log
53 mpirun -np 24 -f nodes ./wrf.exe