- Clone the ufs-land-driver repository:
git clone --recurse-submodules https://github.com/barlage/ufs-land-driver.git
-
Make sure your computer has a Fortran compiler and NetCDF software installed.
-
Navigate to driver
cd ufs-land-driver
- Create a
user_build_config
file
./configure
-
Edit the
user_build_config
file to setup compiler, and library paths (to be consistent with your environment if not done by default). -
Optional If you'd like to use a different
ccpp-physics
directory from the one automatically downloaded with the clone, set thePHYSDIR
inuser_build_config
to point to the top of theccpp-physics
directory (path relative to themod
directory. -
Compile the code
make
All the modules from ccpp-physics should be compiled in the mod
directory, and all the drivers in the driver
directory, and the executable is in the run
directory.
For versions older than 2021-12-06 (commit b3048d3a5), see wiki for instructions