Versions Compared

Key

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

...

verzijamodulred
4.3.3scientific/wrf/4.3.3-gnucpu
4.3.3scientific/wrf/4.3.3-openmpi5cpu
4.5.2scientific/wrf/4.5.2-openmpi5 cpu

Dokumentacija

...

Code Block
languagebash
titlenamelist.inpuinput
linenumberstrue
collapsetrue
&time_control
  run_days           = 0
  run_hours          = 1
  run_minutes        = 0
  run_seconds        = 0
  start_year         = 2016
  start_month        = 10
  start_day          = 06
  start_hour         = 00
  end_year           = 2016
  end_month          = 10
  end_day            = 06
  end_hour           = 12
  interval_seconds   = 21600
  input_from_file    = .true.
  history_interval   = 180
  frames_per_outfile = 1 
  restart            = .false.
  restart_interval   = 40000000
  io_form_history    = 2 
  io_form_restart    = 2 
  io_form_input      = 2 
  io_form_boundary   = 2 
  debug_level        = 0 
/ 
  
&domains
  time_step               = 4
  max_dom                 = 1
  e_we                    = 1600
  e_sn                    = 1600
  e_vert                  = 45
  p_top_requested         = 5000
  num_metgrid_levels      = 32
  num_metgrid_soil_levels = 4
  dx                      = 1685
  dy                      = 1685
  grid_id                 = 1
  parent_id               = 0
  i_parent_start          = 1
  j_parent_start          = 1
  parent_grid_ratio       = 1
  feedback                = 1
  smooth_option           = 0
/
 
&physics
  mp_physics              = 3
  ra_lw_physics           = 1
  ra_sw_physics           = 1
  radt                    = 30
  sf_sfclay_physics       = 1
  sf_surface_physics      = 2
  num_soil_layers         = 4
  bl_pbl_physics          = 1
  bldt                    = 0
  cu_physics              = 1
  cudt                    = 5
  isfflx                  = 1
  ifsnow                  = 1
  icloud                  = 1
  surface_input_source    = 3
  num_land_cat            = 21
  sf_urban_physics        = 0
  sf_ocean_physics        = 0
/

&dynamics
  w_damping               = 0
  diff_opt                = 1
  km_opt                  = 4
  diff_6th_opt            = 0
  diff_6th_factor         = 0.12
  base_temp               = 290.
  damp_opt                = 0
  zdamp                   = 5000.
  dampcoef                = 0.2
  damp_opt                = 0
  damp_opt                = 0
  non_hydrostatic         = .true.
  moist_adv_opt           = 1
  scalar_adv_opt          = 1
/

&bdy_control
  spec_bdy_width          = 5
  spec_zone               = 1
  relax_zone              = 4
  specified               = .true.
  nested                  = .false.
/

&namelist_quilt
  nio_tasks_per_group = 0
/

...

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

#PBS -q cpu
#PBS -l select=1:ncpus=1:mem=20GB

#PBSmodule -oload output/
#PBS -e output/

module load scientific/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
real.mpiexec -np 32 real.exe


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

#PBS -q gpucpu
#PBS -l select=32128:ncpus=2:mem=10GB
#PBS -l walltime=60
#PBS -o output/
#PBS -e output/1

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"
...


...