Skip to content

Commit 77f83d1

Browse files
lukelowryactions-user
authored andcommitted
Apply pre-commit fixes
1 parent 4fe8320 commit 77f83d1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/UnitTests/PhasorDynamics/ConverterRegcaTests.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ namespace GridKit
143143
const ScalarT vt = std::sqrt(vr * vr + vi * vi);
144144
const ScalarT lvacm =
145145
Math::linseg(vt, static_cast<RealT>(0.4), static_cast<RealT>(0.9), ONE<RealT>);
146-
const ScalarT ipcmd0 = toComponentBase(p0 / vt, mva) / lvacm;
147-
const ScalarT iqcmd0 = toComponentBase(q0 / vt, mva);
148-
const ScalarT qnet0 = iqcmd0;
149-
const ScalarT ir0 = (vr * ipcmd0 * lvacm + vi * qnet0) / vt;
150-
const ScalarT ii0 = (vi * ipcmd0 * lvacm - vr * qnet0) / vt;
146+
const ScalarT ipcmd0 = toComponentBase(p0 / vt, mva) / lvacm;
147+
const ScalarT iqcmd0 = toComponentBase(q0 / vt, mva);
148+
const ScalarT qnet0 = iqcmd0;
149+
const ScalarT ir0 = (vr * ipcmd0 * lvacm + vi * qnet0) / vt;
150+
const ScalarT ii0 = (vi * ipcmd0 * lvacm - vr * qnet0) / vt;
151151
const ScalarT ipcmd_signal = toSystemBase(ipcmd0, mva);
152152
const ScalarT iqcmd_signal = toSystemBase(iqcmd0, mva);
153153
const ScalarT ir_signal = toSystemBase(ir0, mva);

0 commit comments

Comments
 (0)