Getting Started¶
Clone, build, and run ERF in a few steps:
git clone --recursive https://github.com/erf-model/ERF.git
cd ERF
# Customize (optional): export ERF_BUILD_DIR=... ERF_SOURCE_DIR=... ERF_INSTALL_DIR=... or ERF_HOME=...
ERF_HOME=$(pwd) ./Build/cmake_with_kokkos_many.sh
# Run from install directory
cd install/bin
mpiexec -n 4 ./erf_exec ../../Exec/CanonicalTests/ABL/inputs_most
On an HPC system? Start here instead.
Each tab sources a machine profile that handles environment setup, then runs the appropriate build script for that machine’s GPU backend. For download links and full job submission scripts, see Quickstart on HPC Systems.
git clone --recursive https://github.com/erf-model/ERF.git
cd ERF
source Build/machines/perlmutter_erf.profile
ERF_HOME=$(pwd) ./Build/cmake_with_kokkos_many_cuda.sh
cd install/bin
sbatch ../../Docs/sphinx_doc/scripts/quickstart/run_perlmutter_erf.sbatch
git clone --recursive https://github.com/erf-model/ERF.git
cd ERF
source Build/machines/kestrel_erf.profile
ERF_HOME=$(pwd) ./Build/cmake_with_kokkos_many_cuda.sh
cd install/bin
sbatch ../../Docs/sphinx_doc/scripts/quickstart/run_kestrel_erf.sbatch
git clone --recursive https://github.com/erf-model/ERF.git
cd ERF
source Build/machines/frontier_erf.profile
ERF_HOME=$(pwd) ./Build/cmake_with_kokkos_many_hip.sh
cd install/bin
sbatch ../../Docs/sphinx_doc/scripts/quickstart/run_frontier_erf.sbatch
git clone --recursive https://github.com/erf-model/ERF.git
cd ERF
source Build/machines/aurora_erf.profile
export NETCDF_DIR=<path-to-netcdf>
ERF_HOME=$(pwd) ./Build/cmake_with_kokkos_many_sycl.sh
cd install/bin
qsub ../../Docs/sphinx_doc/scripts/quickstart/submit_erf_aurora.pbs
Not on a listed machine? See Machine Profiles, Cray Detection, Build Scripts, and Workstation Builds for machine profile customization.
Need more detail? Choose the path that fits your situation:
More copy-paste options — GNU Make, alternative CMake workflows, and full HPC scripts with download links → Quickstart: Clone-Build-Run
Step-by-step walkthrough of what each stage is doing and why — work through Downloading the Code, Building ERF, Running, and Testing and Verification in order
Machine or library specific setup, advanced configuration, or troubleshooting → Beyond the Basics: Machines and Libraries (Beyond the Basics: Machines and Libraries)