Skip to content

Commit

Permalink
Fix the debug info according to the schema
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24874 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 3, 2015
1 parent 94a443a commit 3dfe5c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/SimCode/SerializeModelInfo.mo
Expand Up @@ -74,7 +74,7 @@ algorithm
equation
fileName = code.fileNamePrefix + "_info.json";
File.open(file,fileName,File.Mode.Write);
File.write(file, "{\"format\":\"OpenModelica debug info\",\"version\":1,\n\"info\":{\"name\":\"");
File.write(file, "{\"format\":\"Transformational debugger info\",\"version\":1,\n\"info\":{\"name\":\"");
File.writeEscape(file, Absyn.pathStringNoQual(mi.name), escape=File.Escape.JSON);
File.write(file, "\",\"description\":\"");
File.writeEscape(file, mi.description, escape=File.Escape.JSON);
Expand Down Expand Up @@ -512,7 +512,7 @@ algorithm
File.write(file, "\",\"tag\":\"container\",\"display\":\"linear\",\"defines\":[");
serializeUses(file,list(match v case SimCodeVar.SIMVAR() then v.name; end match
for v in eq.vars));
File.write(file, "],\"equation\":{\"size\":");
File.write(file, "],\"equation\":[{\"size\":");
File.write(file,intString(i));
if i <> 0 then
File.write(file,",\"density\":");
Expand All @@ -522,7 +522,7 @@ algorithm
serializeList1(file,eq.simJac,withOperations,serializeLinearCell);
File.write(file,"],\"b\":[");
serializeList(file,eq.beqs,serializeExp);
File.write(file,"]}}");
File.write(file,"]}]}");
then true;
case SimCode.SES_ALGORITHM(statements=stmt::_)
equation
Expand Down

0 comments on commit 3dfe5c9

Please sign in to comment.