Describe the bug
If you follow the instructions given in the docs for running a model in static mode and take the approach that is supposed to skip the model setup (or update) process the simulation run crashes during initialisation
To Reproduce
Steps to reproduce the behavior:
- Set up a virtual_ecosystem example simulation
- Configure a model (e.g. soil) to be static
- Provide all variables in that models
_vars_populated_by_init as input data
- Run the simulation
- See error, i.e. "ValueError: Variable dissolved_nitrate initialised by soil already initialised by ['data']."
Expected behavior
Setup (or update) is skipped
Additional context
The question here is really whether this is a bug in the static model that should be fixed, or just a documentation problem (which was my assumption with #1218). An alternative option to make a model static, is to delete all references from it from the config and instead just provide the outputs that it should generate. This gives us a way to skip the update and setup process, but not the setup process by itself
Describe the bug
If you follow the instructions given in the docs for running a model in static mode and take the approach that is supposed to skip the model setup (or update) process the simulation run crashes during initialisation
To Reproduce
Steps to reproduce the behavior:
_vars_populated_by_initas input dataExpected behavior
Setup (or update) is skipped
Additional context
The question here is really whether this is a bug in the static model that should be fixed, or just a documentation problem (which was my assumption with #1218). An alternative option to make a model static, is to delete all references from it from the config and instead just provide the outputs that it should generate. This gives us a way to skip the update and setup process, but not the setup process by itself