File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
power_grid_model_c/power_grid_model/include/power_grid_model/component Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,14 @@ template <symmetry_tag current_sensor_symmetry_> class CurrentSensor : public Ge
168
168
// arg(e^i * u_angle) = u_angle in (-pi, pi]
169
169
auto const unbounded_i_angle_residual = arg (i_measured_complex) - arg (i_output);
170
170
if constexpr (is_symmetric_v<sym_calc>) {
171
- output.i_angle_residual = arg (ComplexValue<sym_calc>{cos (unbounded_i_angle_residual), sin (unbounded_i_angle_residual)});
171
+ output.i_angle_residual =
172
+ arg (ComplexValue<sym_calc>{cos (unbounded_i_angle_residual), sin (unbounded_i_angle_residual)});
172
173
} else {
173
- output.i_angle_residual = arg (
174
- ComplexValue<sym_calc>{
175
- cos (unbounded_i_angle_residual (0 )) + 1i * sin (unbounded_i_angle_residual (0 )),
176
- cos (unbounded_i_angle_residual (1 )) + 1i * sin (unbounded_i_angle_residual (1 )),
177
- cos (unbounded_i_angle_residual (2 )) + 1i * sin (unbounded_i_angle_residual (2 )),
178
- });
174
+ output.i_angle_residual = arg (ComplexValue<sym_calc>{
175
+ cos (unbounded_i_angle_residual (0 )) + 1i * sin (unbounded_i_angle_residual (0 )),
176
+ cos (unbounded_i_angle_residual (1 )) + 1i * sin (unbounded_i_angle_residual (1 )),
177
+ cos (unbounded_i_angle_residual (2 )) + 1i * sin (unbounded_i_angle_residual (2 )),
178
+ });
179
179
}
180
180
return output;
181
181
}
You can’t perform that action at this time.
0 commit comments