Skip to content

Commit

Permalink
refs #2209: Avoid equality on Real variables
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Apr 10, 2018
1 parent 2148bc0 commit 0b58127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Blocks/Sources.mo
Expand Up @@ -1949,7 +1949,7 @@ a flange according to a given acceleration.
end getInterpolationCoefficients;
algorithm
if noEvent(size(table, 1) > 1) then
assert(table[1, 1] == 0, "The first point in time has to be set to 0, but is table[1,1] = " + String(table[1, 1]));
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]));
end if;
when {time >= pre(nextEvent),initial()} then
(a,b,nextEventScaled,last) := getInterpolationCoefficients(
Expand Down

0 comments on commit 0b58127

Please sign in to comment.