Skip to content

Commit

Permalink
- ignore toplevel inputs for parameter bound equations
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13975 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Nov 19, 2012
1 parent 84b2c97 commit 789617e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/BackEnd/SimCodeUtil.mo
Expand Up @@ -6833,6 +6833,7 @@ algorithm

case ((var as BackendDAE.VAR(varName=cr, bindExp=SOME(e), source = source),(eqns,v,kn,v1,v2,pos)))
equation
false = BackendVariable.isVarOnTopLevelAndInput(var);
b1 = BackendVariable.isParam(var);
b2 = Expression.isConstValue(e);
// if not parameter use it, else use it only if not constant
Expand Down

0 comments on commit 789617e

Please sign in to comment.