Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titlewps.sh
linenumberstrue
collapsetrue
#!/bin/bash

#PBS -q cpu
#PBS -l select=1:ncpus=1:mem=20GB
#PBS -o output/
#PBS -e output/

module load scientific/wrf/4.3.3-gnu

# change to working dir
cd $PBS_O_WORKDIR

# edit namelist.wps
sed -i "s|WPS_GEOG_PATH|'${WPS_HOME}/WPS_GEOG'|" namelist.wps
sed -i "s|GEOGRID_PATH|'${WPS_HOME}/geogrid'|" namelist.wps
sed -i "s|METGRID_PATH|'${WPS_HOME}/metgrid'|" namelist.wps

# wps
ln -sf $WPS_HOME/ungrib/Variable_Tables/Vtable.GFS Vtable
link_grib.csh matthew/fnl_
ungrib.exe
geogrid.exe
metgrid.exe  

...

Code Block
languagebash
titlewrf-real.sh
linenumberstrue
collapsetrue
#!/bin/bash

#PBS -q cpu
#PBS -l select=32:ncpus=1:mem=100GB
#PBS -o output/
#PBS -e output/

module load cray-pals
module load scientific/wrf/4.3.3-gnu

# change to working dir
cd $PBS_O_WORKDIR

# real
mpiexec -np 32 real.exe

...

Code Block
languagebash
titlewrf.sh
linenumberstrue
collapsetrue
#!/bin/bash

#PBS -q cpu
#PBS -l select=128:ncpus=1:mem=5GB
#PBS -o output/
#PBS -e output/

module load cray-pals
module load scientific/wrf/4.3.3-gnu

# change to working dir
cd $PBS_O_WORKDIR

# real
ln -sf $WRF_HOME/run/*.TBL .
ln -sf $WRF_HOME/run/RRTM* .
ln -sf $WRF_HOME/run/CAMtr_* .
mpiexec -np 128 wrf.exe

...