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=1632: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 gpucpu
#PBS -l select=32128:ncpus=21:mem=10GB
#PBS -l walltime=605GB
#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 $(( 1 * 64 )) --ppn 64128 wrf.exe

Napomene

Tip
titleVarijable okoliša i ulazni rasteri

Dvije varijable okoliša su definirane u svrhu razvoja skripta sustava PBS (primjeri iznad):

  • WRF_HOME - putanja do izvornog direktorija instalacije modela WRF
  • WPS_HOME - putanja do izvornog direktorija instalacije modela WPS

Statički podaci za izradu površinskih rastera (npr. orografija i landmask) mogu se povezati korištenjem izraza ispod u skriptama sustava PBS :

Code Block
...
primjer_putanje="${WPS_HOME}/WPS_GEOG"
...


...