Title
Improving testing in CABLE: Range checks for variables
About
Previously, the CABLE codebase had undocumented and scattered bound-checks on certain variables.
A new feature in CABLE has been implemented, which adds streamlined functionality for checking input and output variables at certain timesteps against valid ranges. This sanity check helps with improved testing, providing the climate scientist with more logs and feedback to develop new features more accurately. The user can set a flag for doing range checks, which include:
- No checks for bounds.
- Checks at every timestep.
- Checks only when writing to the output file.
In case the range check fails, the user can also set a switch to (a) provide warning with logs or (b) exit the program.
Poster
Note: this topic is part of the 2024 ACCESS Community Workshop Poster session