Skip to content

Commit

Permalink
fix types inside period
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaRB committed Sep 10, 2024
1 parent c5e7487 commit 336a485
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/modelica_libraries/CRMLtoModelica.mo
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end CRMLClock;
CRMLPeriod P;

equation
P.is_open = true;
P.is_open = if( CRMLtoModelica.Functions.Event2Boolean (P.start_event) and not CRMLtoModelica.Functions.Event2Boolean (P.close_event))then true else false;


end CRMLPeriod_build;
Expand Down Expand Up @@ -283,11 +283,11 @@ end cvBooleanToBoolean4;
function Event2Boolean
input Types.Event e;

output Types.Boolean4 b;
output Boolean b;

algorithm

b:=e.b;
b:=if(e.b == CRMLtoModelica.Types.Boolean4.true4)then true else false;

end Event2Boolean;

Expand Down Expand Up @@ -563,4 +563,4 @@ end cvBooleanToBoolean4;
annotation(
Icon(graphics = {Ellipse(origin = {5, -2}, fillColor = {0, 143, 0}, fillPattern = FillPattern.Solid, extent = {{-59, 58}, {59, -58}})}));

end CRMLtoModelica;
end CRMLtoModelica;

0 comments on commit 336a485

Please sign in to comment.