Skip to content

Commit

Permalink
Fix simplify on semiLinear with equal slopes (#10854)
Browse files Browse the repository at this point in the history
  • Loading branch information
phannebohm committed Jun 19, 2023
1 parent 0092df0 commit 950c77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/NFFrontEnd/NFSimplifyExp.mo
Expand Up @@ -284,7 +284,7 @@ algorithm
exp := Expression.makeZero(ty);
elseif Expression.isEqual(m1, m2) then
// both slopes x*m1, x*m2 are equal
exp := Expression.BINARY(x, Operator.makeAdd(ty), m1);
exp := Expression.BINARY(x, Operator.makeMul(ty), m1);
else
// no simplification, just return
exp := Expression.CALL(call);
Expand Down

0 comments on commit 950c77a

Please sign in to comment.