Skip to content

Commit 6089940

Browse files
gkhalleydietmarw
andauthored
Invalid == on Reals NegCurLogic (OpenIPSL#326)
* Invalid == on Reals NegCurLogic Meant to apply to OpenIPSL#315 . OpenIPSL.Tests.Controls.PSSE.ES.SCRX builds and runs in WSM 13.2. Previously it didn't. Co-authored-by: Dietmar Winkler <dietmar.winkler@dwe.no>
1 parent 314ad80 commit 6089940

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenIPSL/NonElectrical/Logical/NegCurLogic.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ model NegCurLogic "Negative current logic block"
1111
Real Crowbar_V;
1212
equation
1313
Efd = if XadIfd < 0 then Crowbar_V else Vd;
14-
Crowbar_V = if RC_rfd == 0 then 0 else (-1)*RC_rfd*XadIfd;
14+
Crowbar_V = if not (RC_rfd > 0 or RC_rfd < 0) then 0 else (-1)*RC_rfd*XadIfd;
1515
annotation (
1616
Icon(graphics={Rectangle(
1717
extent={{-100,100},{100,-100}},

0 commit comments

Comments
 (0)