Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e66beae

Browse files
lochelOpenModelica-Hudson
authored andcommitted
Add index reduction to optdaedump output
1 parent 3b5135a commit e66beae

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Compiler/BackEnd/BackendDump.mo

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,16 @@ algorithm
607607
print("\n");
608608
end dumpEqSystem;
609609

610+
public function dumpEqSystemShort
611+
input BackendDAE.EqSystem inEqSystem;
612+
input String heading;
613+
algorithm
614+
print("\n" + heading + " (" + partitionKindString(inEqSystem.partitionKind) + ")\n" + UNDERLINE + "\n");
615+
dumpVariables(inEqSystem.orderedVars, "Variables");
616+
dumpEquationArray(inEqSystem.orderedEqs, "Equations");
617+
print("\n");
618+
end dumpEqSystemShort;
619+
610620
public function dumpEqSystems
611621
input BackendDAE.EqSystems inEqSystems;
612622
input String heading;

Compiler/BackEnd/IndexReduction.mo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ algorithm
145145
ErrorExt.delCheckpoint("Pantelides");
146146

147147
if Flags.isSet(Flags.OPT_DAE_DUMP) then
148+
BackendDump.dumpEqSystemShort(osyst, "pantelidesIndexReduction");
148149
print("Index reduction done.\n");
149150
end if;
150151
else

0 commit comments

Comments
 (0)