Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-Fire-merge.git] / test / em_fire / rain_1 / run_wrf.pbs
blob3d0050c14544abe453319811f93bb12ed26398d1
1 #!/bin/bash
3 # Set the number of nodes and processes per node
4 # each node contains 12 processing cores
5 #PBS -l nodes=2:ppn=12
7 # Set the maximum amount of the time the job will run (HH:MM:SS)
8 #PBS -l walltime=24:00:00
10 # Give the job a name
11 #PBS -N test
13 # Keep all environment variables from the current session (PATH, LD_LIBRARY_PATH, etc)
14 #PBS -V
16 sleep 1
18 # Change to the run directory (where job was submitted)
19 ulimit -s unlimited
20 cd $PBS_O_WORKDIR
21 # rm -f rsl.*
23 # If the binary supports openmp, we should specify the number of thread to use
24 # per process using the OMP_NUM_THREADS variable.
25 export OMP_NUM_THREADS=1
27 # Execute the program through mpi with the machine file specified by PBS
28 mpirun -np 24 -machinefile $PBS_NODEFILE ./wrf.exe