Skip to content

Commit

Permalink
Fixed bug with {} in the exportDAEtoMatlab function
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3953 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
friskerik committed Mar 17, 2009
1 parent 968380d commit a18c0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/DAEQuery.mo
Expand Up @@ -202,14 +202,14 @@ algorithm
case ((row :: {}),rowIndex)
equation
str1 = getIncidenceRow(row);
str = Util.stringAppendList({"[", str1, "]"});
str = Util.stringAppendList({"{", str1, "}"});
then
str;
case ((row :: rows),rowIndex)
equation
str1 = getIncidenceRow(row);
str2 = getIncidenceMatrix2(rows,rowIndex+1);
str = Util.stringAppendList({"[", str1, "],", str2});
str = Util.stringAppendList({"{", str1, "},", str2});
then
str;
end matchcontinue;
Expand Down Expand Up @@ -792,7 +792,7 @@ algorithm
s3 = incidenceRowExp(e3, vars);
ss3 = getIncidenceRow(s3);
// build the string now
ss = Util.stringAppendList({"{'if', ",s,",'", opStr, "' {",ss1,"}",",{", ss2, "},", ss3, "}"});
ss = Util.stringAppendList({"{'if', ",s,",'", opStr, "' {",ss1,"}",",{", ss2, "},", "{", ss3,"}", "}"});
pStr = {ss};
then
pStr;
Expand Down

0 comments on commit a18c0f9

Please sign in to comment.