Skip to main content

WRF & WPS

The Weather Research and Forecasting (WRF) Model is a state of the art mesoscale numerical weather prediction system designed for both atmospheric research and operational forecasting applications.

WRF website

WPS (WRF Pre-processing System) is also installed with WRF.

Installed version

$ module avail w

wps-4.3.1/openmpi-4.1.5/gcc-13.1.0-ccub_no_leap
wps-4.3.1/openmpi-4.1.5/gcc-13.1.0-ccub_no_leap-serial_NO_GRIB2
wps-4.3.1/openmpi-4.1.5/gcc-13.1.0-serial_NO_GRIB2

wrf-4.3.3/openmpi-4.1.5/gcc-13.1.0-ccub_fcoptim
wrf-4.3.3/openmpi-4.1.5/gcc-13.1.0-ccub_fcoptim-ccub_no_leap

Build options:

  • dmpar (MPI with OpenMPI)
  • NetCDF serial with HDF5 compression

Variants:

  • ccub_fcoptim = local optimizations (-Ofast -ffast-math -ftree-vectorize -funroll-loops -mieee-fp)
  • ccub_ghg = include greenhouse gases emissions (default in versions from 4.4)
  • ccub_no_leap = without leap years (every year has 365 days)
  • pnetcdf = Parallel IO support through Pnetcdf library

Slurm script

Please modify this script as required

job_wrf.slurm.sh
#!/bin/bash -l

## Job Script script to be adapted as required ##

#SBATCH --job-name="MY_JOB_NAME" ## <---(modify me)
#SBATCH --output=%x.%J.out ## %x=job name, %J=job id
#SBATCH --error=%x.%J.out
#SBATCH --time 24:00:00 ## 24h walltime ((hh:mm::ss) <--- (modify me)
#SBATCH --partition=mpi1 ## mpi1 partition <---(modify me)
#SBATCH --ntasks=48 ## request 48 MPI tasks <---(modify me)
#SBATCH --mem=0 ## request all node memory
#SBATCH --mail-user=<yourmail>@.yourdomain.fr ## <---(modify me)
#SBATCH --mail-type=END,FAIL ## notify when job end/fail

## We strongly recommend using this command
module purge

module load wrf-4.3.3/openmpi-4.1.5/gcc-13.1.0-ccub_fcoptim-ccub_no_leap

srun wrf.exe

Submit job to Slurm:

$ sbatch job_wrf.slurm.sh