WRF-Chem 4.5.2 (Apolo 3)
Basic Information
Deploy date: 03/2026
Official Website: https://www.mmm.ucar.edu/weather-research-and-forecasting-model
Installation path:
/opt/ohpc/pub/apps/WRF/wrf-chem/v4.5.2Installed on: Apolo 3
Module
The production module for this version is:
module use /opt/ohpc/pub/moduledeps/gnu14-openmpi5
module load wrf-chem/4.5.2
Module dependencies configured in Apolo 3:
gnu14/14.2.0
openmpi5/5.0.7
phdf5/1.14.6
netcdf/4.9.3
netcdf-fortran/4.6.2
zlib/1.2.11
flex/2.6.4
bison/3.8.2
Environment variables exported by the module:
WRF_DIR=/opt/ohpc/pub/apps/WRF/wrf-chem/v4.5.2
WRF_CHEM=1
WRF_KPP=1
High-level Build Process
This section summarizes the process used to build and deploy WRF-Chem 4.5.2 on Apolo 3.
Load compiler and MPI toolchain:
module load gnu14/14.2.0 module load openmpi5/5.0.7
Configure NetCDF and GRIB-related environment variables (NetCDF-C, NetCDF-Fortran, JasPer/libpng stack).
Build or validate required dependencies (zlib, libpng, jasper, flex, bison).
Configure WRF-Chem with GNU/OpenMPI and chemistry options:
export WRF_CHEM=1 export WRF_KPP=1 ./configure
Compile the model (typically
em_realcase) and validate generated binaries.Deploy application files to:
/opt/ohpc/pub/apps/WRF/wrf-chem/v4.5.2
Publish the module file under:
/opt/ohpc/pub/moduledeps/gnu14-openmpi5/wrf-chem/4.5.2
Mode of Use
Load the module:
module load wrf-chem/4.5.2
Go to a working directory and prepare your simulation files.
Ensure your
namelist.inputis consistent with your WPS-generatedmet_emfiles.Run the standard WRF-Chem workflow:
./real.exe ./wrf.exe
For production runs, submit through Slurm according to Apolo 3 policies.
Quick Validation
After loading the module, validate the environment with:
echo $WRF_DIR
which mpirun
ls $WRF_DIR/main/{real.exe,wrf.exe}
References
WRF Users Page: https://www2.mmm.ucar.edu/wrf/users/
Build notes used in this deployment: https://forum.mmm.ucar.edu/threads/full-wrf-and-wps-installation-example-gnu.12385/
WPS detailes compilation process: https://etrp.wmo.int/pluginfile.php/87007/mod_resource/content/4/WRF-Chem%20Training%20Manual.final.Oct3.2024.pdf