ImperialCollegeLondon / virtual_ecosystem

This repository is the home for the codebase for the Virtual Ecosystem project.
https://virtual-ecosystem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Add check for nan values before running the soil model #536

Open vgro opened 1 month ago

vgro commented 1 month ago

Is your feature request related to a problem? Please describe. The soil model integration function runs into an endless loop when it is fed with NaN values without giving any indication of what is going wrong. This has happened a few times when changes were made in other models and it took quite some time to find the bug.

Describe the solution you'd like We would like the functions that are affected to check if there are NaN values in the input before it starts and throw an error message and exit the model run.