WRF
Overview
Weather Research and Forecasting Model (WRF) is a state-of-the-art atmospheric modeling system designed for both meteorological research and numerical weather prediction.
Version 4.0.3 is installed on the CSF.
Restrictions on use
WRF is open source, and has been released with no restrictions on use (licensing or otherwise).
Set up procedure
We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this.
Load one of the following modulefiles (which will cause the supporting library modules to be loaded too):
module load apps/gcc/wrf/4.0.3 module load apps/intel-17.0/wrf/4.0.3
Copy the running directory (which contains standard input files required by WRF) for your version of the model using:
cp -a $WRF_RUNDIR [scenario_name]
Running the application
Please do not run WRF on the login node – it is computationally intensive, and requires MPI parallisation to run properly. Jobs should be submitted to the compute nodes via batch.
Parallel batch job submission
Two example batch scripts are included in the running directory:
batch_example_short_real.sh batch_example_short_wrf.sh
These have the form:
#!/bin/bash --login #SBATCH -p multicore # (or --partition=) Use the AMD 168-core nodes #SBATCH -n 32 # (or --ntasks=) Number of cores (2-168) #SBATCH -t 4-0 # 4 day wallclock limit (max permitted is 7-0) # Start with a clean environment module purge module load apps/gcc/wrf/4.0.3 # Remove old output files rm rsl.error.* rsl.out.* # Slurm knows to run $SLURM_NTASKS processes (the -n number above) mpirun wrf.exe
The rm
command is needed to clear out any pre-existing log files (which is not done by the program itself).
Further info
Updates
None.