Skip to content

Commit 34591f0

Browse files
gkhalleydietmarw
andauthored
Invalid == on Reals IEEEST (OpenIPSL#325)
* Invalid == on Reals IEEEST Meant to apply to OpenIPSL#315 . OpenIPSL.Tests.Controls.PSSE.PSS.IEEEST builds and runs in WSM 13.2. Co-authored-by: Dietmar Winkler <dietmar.winkler@dwe.no>
1 parent 6089940 commit 34591f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • OpenIPSL/Electrical/Controls/PSSE/PSS

OpenIPSL/Electrical/Controls/PSSE/PSS/IEEEST.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,19 @@ initial equation
129129
end if;
130130
V_S0 = V_S;
131131
equation
132-
if V_CU == 0 and not V_CL == 0 then
132+
if not (V_CU > 0 or V_CU < 0) and (V_CL > 0 or V_CL < 0) then
133133
if V_CT > V_CL then
134134
VOTHSG = Vs;
135135
else
136136
VOTHSG = 0;
137137
end if;
138-
elseif V_CL == 0 and not V_CU == 0 then
138+
elseif not (V_CL > 0 or V_CL < 0) and (V_CU > 0 or V_CU < 0) then
139139
if V_CT < V_CU then
140140
VOTHSG = Vs;
141141
else
142142
VOTHSG = 0;
143143
end if;
144-
elseif V_CU == 0 and V_CL == 0 then
144+
elseif not (V_CU > 0 or V_CU < 0) and not (V_CL > 0 or V_CL < 0) then
145145
VOTHSG = Vs;
146146
elseif V_CT > V_CL and V_CT < V_CU then
147147
VOTHSG = Vs;

0 commit comments

Comments
 (0)