This is a template repo. Click on "Use this template" button in Github to fork and customize it for your CTSM development work.
- Prepare the data for your case. See this guide on how to create data for a single point.
- Put your data folder under
data
. - Change
CLM_USRDAT_DIR
indata/<site_name>/user_mods/shell_commands
to/ctsm-api/resources/data/<site_name>
. - If
MPILIB
is set indata/<site_name>/user_mods/shell_commands
, remove it. - Adjust
cases/run_case.sh
for the case you want to run.CASE_NAME
must refer to the name of the data folder you put indata
. Modify thexmlchange
calls as needed. - Create a
.env
file in the root directory of the project. Seeenv.example
for an example. You only need to adjustCTSM_REPO
andCTSM_TAG
for the CTSM version you want to use. Keep the other variables as they are inenv.example
. - Run
run_docker.sh
to start a shell in the docker container. - From within the container, you can test your case by calling
/ctsm-api/resources/cases/run_case.sh
.