Closed adlzanchetta closed 9 months ago
Hi @adlzanchetta -- There's currently no rule to call initialize
first.
It might be good to bring this up to the BMI community, either through an issue or a discussion post in the BMI repo. At the very least, the current behavior should be clarified and documented.
Thanks for pointing out the right place to go, @mdpiper .
Scenario:
Lets say I have a hydrological model that, depending on its config file, may require one of the following sets of inputs:
or
or
So that I can only determine the return of
get_input_item_count()
andget_input_var_names()
AFTERinitialize()
is called.Question:
Does the BMI standard requires functions like
get_input_item_count()
andget_input_var_names()
to be able to return a valid value even BEFOREinitialize()
is called? Or can I assume that a whatever uses my model via its BMI interface will ALWAYS callinitialize()
before trying to callget_input_item_count()
orget_input_var_names()
?PS:
I apologize if this is not the correct place for this sort of discussion and kindly request for suggestions where I can ask it.