Skip to content

Commit

Permalink
- Fixed the DAE function cache when elaborating the expression in a r…
Browse files Browse the repository at this point in the history
…einit() statement

  - Added simulation testcase FunctionReinit.mos
  - Closing bug #1023


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5896 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 9, 2010
1 parent b19ccda commit 42a586f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Inst.mo
Expand Up @@ -11349,7 +11349,7 @@ algorithm
(cache,e2_1,tprop2,_,fdae2) = Static.elabExp(cache,env, e2, impl, NONE,true);
(cache, e2_1, tprop2) = Ceval.cevalIfConstant(cache, env, e2_1, tprop2, impl);
(e2_1,_) = Types.matchProp(e2_1,tprop2,tprop1,true);
(cache,e1_1,e2_1,tprop1,fdae2) = condenseArrayEquation(cache,env,Absyn.CREF(cr),e2,e1_1,e2_1,tprop1,tprop2,impl);
(cache,e1_1,e2_1,tprop1,fdae3) = condenseArrayEquation(cache,env,Absyn.CREF(cr),e2,e1_1,e2_1,tprop1,tprop2,impl);
(cache,e2_2) = PrefixUtil.prefixExp(cache, env, ih, e2_1, pre);
(cache,e1_2) = PrefixUtil.prefixExp(cache, env, ih, e1_1, pre);

Expand All @@ -11358,7 +11358,7 @@ algorithm

DAE.DAE(daeElts,funcs) = instEqEquation(e1_2, tprop1, e2_2, tprop2, source, initial_, impl);
daeElts = Util.listMap(daeElts,makeDAEArrayEqToReinitForm);
dae = DAEUtil.joinDaeLst({DAE.DAE(daeElts,funcs), fdae1,fdae2});
dae = DAEUtil.joinDaeLst({DAE.DAE(daeElts,funcs),fdae1,fdae2,fdae3});
then
(cache,env,ih,dae,csets,ci_state,graph);

Expand Down

0 comments on commit 42a586f

Please sign in to comment.