Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically update forcing paths in model driver
For longer running simulations (such as spinup), it is a common use case to repeat the forcing over however many years of forcing we have throughout a model run. This change modifies the CABLE driver to dynamically update the forcing paths in the CABLE namelist file when an optional config file (cable.forcing_year.yaml) is present in the experiment directory. The optional configuration file can be used to specify which years of forcing should be run and or repeated via the `offset` and `repeat` keys. This was originally inside a setup script, however we decided this is better off being implemented within the driver as: 1. the script was duplicating a lot of the logic in payu when inferring the current simulation year, and 2. running python in a setup script requires the user to have the correct python environment activated which may be prone to errors - implementing the script in the driver avoids this issue.
- Loading branch information