Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jan Mandel
committed
Mar 23, 2011
1 parent
16dd329
commit f90c4d4
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/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=10 | ||
|
||
# Set the maximum amount of the time the job will run (HH:MM:SS) | ||
#PBS -l walltime=03:00:00 | ||
|
||
# Give the job a name | ||
#PBS -N hill_5x2 | ||
|
||
# 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 5x2.log | ||
|
||
# Change to the run directory (where job was submitted) | ||
cd $PBS_O_WORKDIR | ||
|
||
WD=5x2 | ||
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 . | ||
|
||
cat $PBS_NODEFILE > nodes | ||
mpirun_rsh -np 1 -hostfile nodes OMP_NUM_THREADS=1 ./ideal.exe | ||
mpirun_rsh -np 5 -hostfile nodes OMP_NUM_THREADS=2 ./wrf.exe | ||
|