Skip to content

Commit

Permalink
- removed duplicated simplification
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19109 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Feb 13, 2014
1 parent 436cded commit 4603d97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/BackEnd/Differentiate.mo
Expand Up @@ -790,9 +790,8 @@ algorithm
failure(BackendDAE.DIFFERENTATION_TIME() = inDiffType);

(res1, functionTree) = differentiateExp(e, inDiffwrtCref, inInputData, inDiffType, inFunctionTree);

b = Expression.isConstValue(res1);
res = Util.if_(b, res1, DAE.TSUB(res1, i, tp));

res = DAE.TSUB(res1, i, tp);
(res,_) = ExpressionSimplify.simplify(res);

//se1 = ExpressionDump.printExpStr(res);
Expand Down

0 comments on commit 4603d97

Please sign in to comment.