Documentation
Install CPPWRF, run the self-test, then use the WRF preprocessing workflow for a real-data case.
Install CPPWRF
Build from source, use a release tarball for your build flavour, or use a container. The source build needs a C++20 compiler, CMake 3.24 or later, OpenMP and NetCDF-C headers. The tools use Python 3 with NumPy and netCDF4.
For CUDA builds, the minimum is CUDA Toolkit 12.1 and an NVIDIA GPU with compute capability 7.0. Check the install guide for toolkit requirements on your GPU and host compiler.
Build and test CPU FP64
From the v1.5.0 source tree with the prerequisites installed.
cmake -S . -B build-cpu \
-DCMAKE_BUILD_TYPE=Release \
-DCPPWRF_ENABLE_CUDA=OFF \
-DCPPWRF_DOUBLE=ON
cmake --build build-cpu -j "$(nproc)"
cmake --install build-cpu --prefix "$HOME/cppwrf"
export PATH="$HOME/cppwrf/bin:$PATH"
"$HOME/cppwrf/share/cppwrf/examples/selftest/run.sh" cpu-fp64
First real-data forecast
- Run WPS on GFS inputs to produce the
met_emfiles. - Place the
met_emfiles andnamelist.inputin a run directory. Matchnum_metgrid_levelsandnum_land_catto the inputs, then runcppwrf-realexeto writewrfinputandwrfbdy. - Link the runtime tables from WRF v4.8.0’s
run/directory. Check the options withcppwrf-check namelist.inputand runcppwrf-wrf --mode cpu-fp64to writewrfout. - Run the quick-start
plot.pyexample to make a map from the output.
Guides on GitHub
- User guide and namelist options
- Migrating from WRF
- Frequently asked questions
- Real-data initialization
- Nesting
- MPI and domain decomposition
- Physics suite
- Implementation and verification status
- FP32 identity
- Fast FP32 accuracy
- Python interface
- Command-line tools
- Post-processing
- Verification against observations
- Release notes
- Licensing
