Skip to content

Commit

Permalink
Add index reduction to optdaedump output
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jan 18, 2017
1 parent 3b5135a commit e66beae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Compiler/BackEnd/BackendDump.mo
Expand Up @@ -607,6 +607,16 @@ algorithm
print("\n");
end dumpEqSystem;

public function dumpEqSystemShort
input BackendDAE.EqSystem inEqSystem;
input String heading;
algorithm
print("\n" + heading + " (" + partitionKindString(inEqSystem.partitionKind) + ")\n" + UNDERLINE + "\n");
dumpVariables(inEqSystem.orderedVars, "Variables");
dumpEquationArray(inEqSystem.orderedEqs, "Equations");
print("\n");
end dumpEqSystemShort;

public function dumpEqSystems
input BackendDAE.EqSystems inEqSystems;
input String heading;
Expand Down
1 change: 1 addition & 0 deletions Compiler/BackEnd/IndexReduction.mo
Expand Up @@ -145,6 +145,7 @@ algorithm
ErrorExt.delCheckpoint("Pantelides");

if Flags.isSet(Flags.OPT_DAE_DUMP) then
BackendDump.dumpEqSystemShort(osyst, "pantelidesIndexReduction");
print("Index reduction done.\n");
end if;
else
Expand Down

0 comments on commit e66beae

Please sign in to comment.