Skip to content

Commit 5ae4d2a

Browse files
committed
- minor comment in elabModValue
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4746 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 580ca19 commit 5ae4d2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Compiler/Mod.mo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,13 @@ algorithm
251251
DAE.Exp e;
252252
Env.Cache cache;
253253
DAE.Properties prop;
254+
DAE.Const const;
255+
// evaluate ONLY constants and parameters
254256
case (cache,env,e,prop)
255257
equation
258+
// const = Types.propAllConst(prop) "Don't ceval variables";
259+
// true = listMember(const, {DAE.C_CONST(),DAE.C_PARAM()});
260+
// now which one is faster?
256261
failure(DAE.C_VAR() = Types.propAllConst(prop)) "Don't ceval variables";
257262
(cache,v,_) = Ceval.ceval(cache,env, e, false, NONE, NONE, Ceval.MSG());
258263
then

0 commit comments

Comments
 (0)