Skip to content

Commit

Permalink
- XMLDump: fix implementation to handle also several indipendent systems
Browse files Browse the repository at this point in the history
- BackendDump: add function debugStrEqnStr


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11841 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed May 3, 2012
1 parent 318847e commit b4af0a1
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 173 deletions.
14 changes: 12 additions & 2 deletions Compiler/BackEnd/BackendDump.mo
Expand Up @@ -1809,7 +1809,7 @@ public function dumpMarkedEqns
algorithm
outString := match (syst,inIntegerLst)
local
String s1,s2,res;
String s1,s2,s3,res;
BackendDAE.Value e_1,e;
BackendDAE.Equation eqn;
BackendDAE.BackendDAE dae;
Expand All @@ -1822,7 +1822,8 @@ algorithm
e_1 = e - 1;
eqn = BackendDAEUtil.equationNth(eqns, e_1);
s2 = equationStr(eqn);
res = stringAppendList({s2,";\n",s1});
s3 = intString(e);
res = stringAppendList({s3,": ",s2,";\n",s1});
then
res;
end match;
Expand Down Expand Up @@ -2751,6 +2752,15 @@ algorithm
print(a +& ExpressionDump.printExpStr(b) +& c +& ExpressionDump.printExpStr(d) +& e +& ExpressionDump.printExpStr(f) +& g);
end debugStrExpStrExpStrExpStr;

public function debugStrEqnStr
input tuple<String,BackendDAE.Equation,String> inTpl;
protected
String a,c,e;
BackendDAE.Equation b,d;
algorithm
(a,b,c) := inTpl;
print(a +& equationStr(b) +& c);
end debugStrEqnStr;

public function debugStrEqnStrEqnStr
input tuple<String,BackendDAE.Equation,String,BackendDAE.Equation,String> inTpl;
Expand Down

0 comments on commit b4af0a1

Please sign in to comment.