We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8d7d7 commit de84246Copy full SHA for de84246
OMCompiler/Compiler/FrontEnd/ExpressionSimplify.mo
@@ -2186,7 +2186,7 @@ algorithm
2186
(lstConstExp, lstExp) = List.splitOnTrue(lstExp, Expression.isConst);
2187
if not listEmpty(lstConstExp) then
2188
resConst = simplifyBinaryMulConstants(lstConstExp);
2189
- exp_2 = Expression.makeProductLst(simplifyMul(lstExp));
+ exp_2 = Expression.makeProductLst(if Types.isScalarReal(Expression.typeofOp(op)) then simplifyMul(lstExp) else lstExp);
2190
if Expression.isConstOne(resConst) then
2191
exp_3 = simplify2(exp_2, true, false);
2192
elseif Expression.isConstMinusOne(resConst) then
0 commit comments