Skip to content

Commit

Permalink
- Added failtrace to DAELow.lowerStatementInputsOutputs.
Browse files Browse the repository at this point in the history
- Fixed correct type of DAE.STMT_ASSIGN_ARR in Algorithm.makeAssignment2.
- Fixed code generation for array equations in algorithm sections in models.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5926 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Aug 16, 2010
1 parent 704c78d commit a6b7fd4
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 394 deletions.
4 changes: 3 additions & 1 deletion Compiler/Algorithm.mo
Expand Up @@ -241,10 +241,12 @@ algorithm
DAE.STMT_ASSIGN(t,e1,rhs_1);
*/
case (DAE.CREF(componentRef = c,ty = crt),lhprop,rhs,rhprop,source)
local DAE.Type ty;
equation
(rhs_1,_) = Types.matchProp(rhs, rhprop, lhprop, false /* Don't duplicate errors */);
true = Types.isPropArray(lhprop);
t = getPropExpType(lhprop);
ty = Types.getPropType(lhprop);
t = Types.elabType(ty);
then
DAE.STMT_ASSIGN_ARR(t,c,rhs_1,source);

Expand Down
5 changes: 5 additions & 0 deletions Compiler/DAELow.mo
Expand Up @@ -5452,6 +5452,11 @@ algorithm
inputs = statesAndVarsExp(e, vars);
then
(inputs, {});
case(_, _)
equation
Debug.fprintln("failtrace", "- DAELow.lowerStatementInputsOutputs failed\n");
then
fail();
end matchcontinue;
end lowerStatementInputsOutputs;

Expand Down

0 comments on commit a6b7fd4

Please sign in to comment.