Skip to content

Commit 7f788a2

Browse files
committed
add parenthesis
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
1 parent 6e0a81e commit 7f788a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/measured_values.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ template <symmetry_tag sym> class MeasuredValues {
597597

598598
// S_i = S_i_mea - var_i * mu
599599
auto const calculate_injection = [&mu](auto const& power) {
600-
return ComplexValue<sym>{power.value() - power.real_component.variance * real(mu) +
601-
1.0i * power.imag_component.variance * imag(mu)};
600+
return ComplexValue<sym>{power.value() - ((power.real_component.variance * real(mu)) +
601+
(1.0i * power.imag_component.variance * imag(mu)))};
602602
};
603603

604604
for (Idx const load_gen : load_gens) {

0 commit comments

Comments
 (0)