Skip to content

Commit 5f94b0c

Browse files
committed
actually solve merge conflicts
Signed-off-by: Santiago Figueroa Manrique <santiago.figueroa.manrique@alliander.com>
1 parent e6fddf2 commit 5f94b0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/main_model_impl.hpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,14 @@ class MainModelImpl<ExtraRetrievableTypes<ExtraRetrievableType...>, ComponentLis
399399
SequenceIdx get_sequence_idx_map(ConstDataset const& update_data, Idx scenario_idx,
400400
ComponentFlags const& components_to_store) const {
401401
// TODO: (jguo) this function could be encapsulated in UpdateCompIndependence in update.hpp
402-
return main_core::utils::run_functor_with_all_types_return_array(
402+
return main_core::utils::run_functor_with_all_types_return_array<ComponentType...>(
403403
[this, scenario_idx, &update_data, &components_to_store]<typename CT>() {
404404
if (!std::get<index_of_component<CT>>(components_to_store)) {
405405
return std::vector<Idx2D>{};
406406
}
407-
auto const independence = check_components_independence<CT>(update_data);
408-
validate_update_data_independence(independence);
407+
auto const n_component = this->component_count<CT>();
408+
auto const independence = main_core::check_component_independence<CT>(update_data, n_component);
409+
main_core::validate_update_data_independence(independence);
409410
return get_component_sequence<CT>(update_data, scenario_idx, independence);
410411
});
411412
}

0 commit comments

Comments
 (0)