Skip to content

Can the set of input variables of a BMI-compliant model be defined only at the initialization? #141

Closed Answered by mcflugen
adlzanchetta asked this question in Q&A
Discussion options

You must be logged in to vote

@adlzanchetta initialize should be called before any other BMI functions are called. I'm not sure we've specified that in the docs, but we should. In our framework, we assume that any BMI method called before initialize cannot be trusted.

We do have components that have some functions that can be called successfully, and return valid information, even if initialize hasn't yet been called, but a framework can't assume that. These functions are typically ones that return static metadata like a model that, for example, always provides a fixed set of output variables.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RolfHut
Comment options

Answer selected by adlzanchetta
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants