Skip to content

Commit

Permalink
- fixed HeatingNPN_OrGate by adding a simplification for smooth.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16102 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed May 21, 2013
1 parent c4b9526 commit a72e0aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Compiler/FrontEnd/ExpressionSimplify.mo
Expand Up @@ -1052,6 +1052,12 @@ algorithm
e1 = Expression.makeBuiltinCall("log",{e1},DAE.T_REAL_DEFAULT);
then Expression.expMul(DAE.RCONST(r1), e1);

// smooth of constant expression
case DAE.CALL(path=Absyn.IDENT("smooth"),expLst={_,e1})
equation
true = Expression.isConst(e1);
then e1;

// delay of constant expression
case DAE.CALL(path=Absyn.IDENT("delay"),expLst={e1,_,_})
equation
Expand Down

0 comments on commit a72e0aa

Please sign in to comment.