Skip to content

Commit

Permalink
- fix for XML stateSpace dump
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18033 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 6, 2013
1 parent 010963f commit 8da19c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackEnd/XMLDump.mo
Expand Up @@ -1076,7 +1076,11 @@ algorithm
dumpExtObjCls(extObjCls,stringAppend(EXTERNAL,CLASSES_));
dumpStrCloseTag(VARIABLES);
eqnsVarsinOrderLst = List.fold(systs,getOrderedEqsandVars,{});

dumpStrOpenTagAttr(EQUATIONS, DIMENSION, intString(listLength(eqnsVarsinOrderLst)));
dumpSolvedEqns(eqnsVarsinOrderLst,1,EQUATIONS,addMML,dumpRes, true);
dumpStrCloseTag(EQUATIONS);

reqnsl = BackendEquation.equationList(reqns);
dumpEqns(reqnsl,stringAppend(SIMPLE,EQUATIONS_),addMML,dumpRes, false);
ieqnsl = BackendEquation.equationList(ieqns);
Expand Down Expand Up @@ -1444,9 +1448,7 @@ algorithm
equation
len = listLength(eqnsLst);
len >= 1 = true;
dumpStrOpenTagAttr(inContent, DIMENSION, intString(len));
dumpEqns2(eqnsLst, varLst, inCount, addMMLCode,dumpResiduals,dumpSolved);
dumpStrCloseTag(inContent);
dumpSolvedEqns(rest, inCount+1, inContent, addMathMLCode,dumpResiduals,dumpSolved);
then ();
end match;
Expand Down

0 comments on commit 8da19c6

Please sign in to comment.