Skip to content

Commit 511002f

Browse files
committed
fix minor
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
1 parent da9426e commit 511002f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/optimizer/tap_position_optimizer.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ inline auto get_edge_weights(TransformerGraph const& graph) -> TrafoGraphEdgePro
327327
// side via the bidirectional edge (if it exists). For delta configuration ABC, the above
328328
// situations can happen.
329329
// The logic still holds in meshed grids, albeit operating a more complex graph.
330-
if (!is_unreachable(edge_src_rank) && !is_unreachable(edge_tgt_rank)) {
330+
if (!is_unreachable(edge_src_rank) || !is_unreachable(edge_tgt_rank)) {
331331
if (edge_src_rank != edge_tgt_rank - 1) {
332332
throw AutomaticTapInputError("The control side of a transformer regulator should be relatively further "
333333
"away from the source than the tap side.\n");

0 commit comments

Comments
 (0)