Skip to content

Commit a0f5b39

Browse files
authored
Merge pull request #1032 from PowerGridModel/fix/current-sensor-branch3
Current sensor: Fix when on side_3 of Branch3
2 parents e7bd196 + c4afb9b commit a0f5b39

File tree

1 file changed

+1
-1
lines changed
  • power_grid_model_c/power_grid_model/include/power_grid_model/main_core

1 file changed

+1
-1
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/main_core/input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ inline void add_component(MainModelState<ComponentContainer>& state, ForwardIter
121121
case branch3_2:
122122
return get_component<Branch3>(state, measured_object).node(side_2);
123123
case branch3_3:
124-
return get_component<Branch3>(state, measured_object).node(side_2);
124+
return get_component<Branch3>(state, measured_object).node(side_3);
125125
default:
126126
throw MissingCaseForEnumError{std::format("{} item retrieval", GenericCurrentSensor::name),
127127
measured_terminal_type};

0 commit comments

Comments
 (0)