Skip to content

Commit

Permalink
- added debug flag dumpSimCode.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24140 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Jan 21, 2015
1 parent 4285772 commit 02c3717
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -1748,6 +1748,9 @@ algorithm
// adrpo: collect all the files from SourceInfo and DAE.ElementSource
// simCode = collectAllFiles(simCode);
// print("*** SimCode -> collect all files done!: " + realString(clock()) + "\n");
if Flags.isSet(Flags.DUMP_SIMCODE) then
dumpSimCode(simCode);
end if;
then (simCode, (highestSimEqIndex, equationSccMapping));

else equation
Expand Down
5 changes: 4 additions & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -420,6 +420,8 @@ constant DebugFlag DUMP_CSE = DEBUG_FLAG(127, "dumpCSE", false,
Util.gettext("Additional ouput for CSE module."));
constant DebugFlag DUMP_CSE_VERBOSE = DEBUG_FLAG(128, "dumpCSE_verbose", false,
Util.gettext("Additional ouput for CSE module."));
constant DebugFlag DUMP_SIMCODE = DEBUG_FLAG(129, "dumpSimCode", false,
Util.gettext("Dumps the simCode model used for code generation."));

// This is a list of all debug flags, to keep track of which flags are used. A
// flag can not be used unless it's in this list, and the list is checked at
Expand Down Expand Up @@ -554,7 +556,8 @@ constant list<DebugFlag> allDebugFlags = {
GRAPHML,
USEMPI,
DUMP_CSE,
DUMP_CSE_VERBOSE
DUMP_CSE_VERBOSE,
DUMP_SIMCODE
};

public
Expand Down

0 comments on commit 02c3717

Please sign in to comment.