WPS 4.5.2 (Apolo 3)

Basic Information

Module

The production module for this version is:

module load wps/4.5

Main module dependencies configured in Apolo 3:

gnu14/14.2.0
jasper/1.900.1
libpng/1.2.50
netcdf/4.9.3
wrf-chem/4.5.2
phdf5/1.14.6

Environment variables exported by the module:

WPS_DIR=/opt/ohpc/pub/apps/WRF/wps/v4.5/

The module also prepends to PATH:

  • /opt/ohpc/pub/apps/WRF/wps/v4.5/

  • /opt/ohpc/pub/apps/WRF/scripts/wps4.5-wrf-chem4.5.2

High-level Build Process

This section summarizes the process used to build and deploy WPS 4.5.2 on Apolo 3.

  1. Load the GNU toolchain and required dependencies.

  2. Export WPS build variables pointing to WRF, NetCDF and JasPer paths.

  3. Run ./configure and select the GNU + distributed memory option.

  4. Adjust configure.wps for Apolo 3 compiler flags when required.

  5. Run ./compile and validate generated binaries:

    • geogrid.exe

    • ungrib.exe

    • metgrid.exe

  6. Deploy application files to:

    • /opt/ohpc/pub/apps/WRF/wps/v4.5

  7. Publish the module file under:

    • /opt/ohpc/pub/moduledeps/gnu14-openmpi5/wps/4.5

Mode of Use

Recommended workflow:

  1. Load modules:

    module use /opt/ohpc/pub/moduledeps/gnu14-openmpi5
    module load wrf-chem/4.5.2
    module load wps/4.5
    
  2. Initialize a ready-to-run working directory with the provided helper script:

    init_wrf_enviroment.sh
    

    This script creates:

    • ./wrf_sim_YYYYmmdd_HHMMSS/WPS

    • ./wrf_sim_YYYYmmdd_HHMMSS/WRF_Chem

    and copies/links baseline files for WPS and WRF-Chem.

  3. Edit namelist.wps and run preprocessing steps:

    ./geogrid.exe
    ./link_grib.csh /path/to/grib/files
    ln -sf ungrib/Variable_Tables/Vtable.<dataset> Vtable
    ./ungrib.exe
    ./metgrid.exe
    
  4. Continue in the WRF_Chem directory with real.exe and wrf.exe.

Quick Validation

After loading modules:

echo $WPS_DIR
which geogrid.exe
which init_wrf_enviroment.sh

References

Authors

  • Julian Valencia