Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Disabled constant evaluation of parameters with fixed=false in Mod.elabModValue.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5409 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 28, 2010
1 parent f681299 commit 5601107
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Compiler/Mod.mo
Expand Up @@ -325,6 +325,14 @@ algorithm
Env.Cache cache;
DAE.Properties prop;
DAE.Const const;
// Don't constant evaluate parameters with fixed = false
case (cache,env,e,prop as DAE.PROP(type_ = ty))
local
DAE.Type ty;
equation
DAE.C_PARAM() = Types.propAllConst(prop);
false = Types.getFixedVarAttribute(ty);
then (cache, NONE);
// evaluate ONLY constants and parameters
case (cache,env,e,prop)
equation
Expand Down

0 comments on commit 5601107

Please sign in to comment.