Skip to content

Commit

Permalink
Remove real relation in non-discrete-time controlled if-statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
qlambert-pro committed Oct 31, 2023
1 parent d3ad60c commit a66c9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modelica/Blocks/Sources.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1443,8 +1443,8 @@ a flange according to a given acceleration.
b := b - a*shiftTimeScaled;
end getInterpolationCoefficients;
algorithm
if noEvent(size(table, 1) > 1) then
assert(not (table[1, 1] > 0.0 or table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(table[1, 1]));
if size(table, 1) > 1 then
assert(noEvent(not (table[1, 1] > 0.0 or table[1, 1] < 0.0)), "The first point in time has to be set to 0, but is table[1,1] = " + String(table[1, 1]));
end if;
when {time >= pre(nextEvent),initial()} then
(a,b,nextEventScaled,last) := getInterpolationCoefficients(
Expand Down

0 comments on commit a66c9e0

Please sign in to comment.