Skip to content

Commit

Permalink
refactor(Bmi_Multi_Formulation): initialize available_forcings in ini…
Browse files Browse the repository at this point in the history
…tialization func
  • Loading branch information
program-- committed Jul 22, 2024
1 parent ed5c9a9 commit 9fc3182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/realizations/catchment/Bmi_Multi_Formulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ void Bmi_Multi_Formulation::create_multi_formulation(geojson::PropertyMap proper

// check if a requested output variable name is valid, if not, stop the execution
check_output_var_names();

// initialize available_forcings from nested modules
for (const nested_module_ptr &module: modules) {
for (const std::string &out_var_name: module->get_bmi_output_variables()) {
available_forcings.push_back(module->get_config_mapped_variable_name(out_var_name));
}
}
}

/**
Expand Down

0 comments on commit 9fc3182

Please sign in to comment.