Skip to content

Commit

Permalink
- instantiate also reinit for array variables
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13229 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Oct 7, 2012
1 parent edd3d77 commit 75a46b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/FrontEnd/InstSection.mo
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ algorithm
DAE.Type t;
DAE.ElementSource source "the origin of the element";

case(DAE.EQUATION(DAE.CREF(cr1,_),e,source))
case(DAE.EQUATION(DAE.CREF(componentRef=cr1),e,source))
then DAE.REINIT(cr1,e,source);

case(DAE.DEFINE(cr1,e,source))
Expand All @@ -991,6 +991,9 @@ algorithm
then
DAE.REINIT(cr1,e2,source);

case(DAE.ARRAY_EQUATION(exp=DAE.CREF(componentRef=cr1),array=e,source=source))
then DAE.REINIT(cr1,e,source);

case(_) equation print("Failure in: makeDAEArrayEqToReinitForm\n"); then fail();

end matchcontinue;
Expand Down

0 comments on commit 75a46b3

Please sign in to comment.