Support catchment {{id}}
substitution in init_config
field of global single module formulations
#850
Labels
bug
Something isn't working
{{id}}
is not substituted with the modeled catchment id in global single module formulations (e.g.init_config: "some_config_{{id}}.format"
) like they are in a multi-bmi formulation. It is desirable that this behavior is replicated in the single module formulation variant.Substitution occurs in the multi-bmi case here:
ngen/include/realizations/catchment/Bmi_Multi_Formulation.hpp
Lines 640 to 642 in 0917f9b
Example:
This will throw the following error:
Cannot create and initialize libtestbmicppmodel using unreadable file './data/bmi/c/test/test_bmi_c_config_{{id}}.ini'. Error: No such file or directory
Current workaround:
Wrap the single module in a multi-bmi formulation.
Example
The text was updated successfully, but these errors were encountered: