...
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.in | WPS namelist template |
namelist.input.in | WRF namelist template |
run_wps.sbatch.in | script for submitting ungrib, geogrid, and metgrid using 32 tasks |
run_real.sbatch.in | script 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 | ||
---|---|---|
| ||
$> 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 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 | ||
---|---|---|
| ||
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") |
...