Versions Compared

Key

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

...

A sample submission script together with model configuration for a simple case is available in $PERM/wrf/run_IFS_4km/. run_wrf.sh is a self contained script that runs the test case for April 2019 using IFS boundary conditions. Aside from it, the directory also contains:

namelist.wps.inWPS namelist template
namelist.input.inWRF namelist template
run_wps.sbatch.inscript for submitting ungrib, geogrid, and metgrid using 32 tasks 
run_real.sbatch.inscript for submitting real.exe using 128 tasks
run_wrf.sbatch.in script for submitting wrf.exe using 256 tasks


To run the sample:

Code Block
languagebash
$> cd $PERM/wrf/run_IFS_4km/
$> ./run_wrf.sh

...

Please note: build_wrf_workdir script should be executed only the first time you load specific version of the module to create a WRF structure in your $PERM directory. Every time you execute it, it will overwrite the existing $PERM/wrf/run_IFS_4km/ structure and move the existing directory:

From:To:
run_IFS_4km/run_IFS_4km_old/

After it has been executed once, every other time you just have to load the module to run the model.

...

Compilation should be submitted as a batch job and an example is given in the WRF module:

...

In modules such as netcdf4 on TEMS, libraries are linked using environmental variables such as:

Code Block
languagebash
setenv("NETCDF4_LIB","-L/usr/local/apps/netcdf4/4.7.4/INTEL/19.1/lib -Wl,-rpath,/usr/local/apps/netcdf4/4.7.4/INTEL/19.1/lib -lnetcdff -lnetcdf_c++ -lnetcdf")

...