Skip to content

Commit

Permalink
Remove unnecessary noEvent
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
  • Loading branch information
qlambert-pro and HansOlsson committed Oct 31, 2023
1 parent a66c9e0 commit a112cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Blocks/Sources.mo
Expand Up @@ -1444,7 +1444,7 @@ a flange according to a given acceleration.
end getInterpolationCoefficients;
algorithm
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]));
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 a112cfd

Please sign in to comment.