Skip to content

Commit

Permalink
- new flag to deactivate partitioning
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24795 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Feb 26, 2015
1 parent 46db20a commit 6823b02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackEnd/SynchronousFeatures.mo
Expand Up @@ -71,15 +71,17 @@ algorithm
list<BackendDAE.EqSystem> systs;
BackendDAE.Shared shared;

case (BackendDAE.DAE({syst}, shared)) equation
case (BackendDAE.DAE({syst}, shared)) guard(not Flags.isSet(Flags.NO_PARTITIONING)) equation
systs = clockPartitioning1(syst, shared);
then BackendDAE.DAE(systs, shared);

// TODO: Improve support for partitioned systems of equations
else equation
case _ guard(not Flags.isSet(Flags.NO_PARTITIONING)) equation
BackendDAE.DAE({syst}, shared) = BackendDAEOptimize.collapseIndependentBlocks(inDAE);
systs = clockPartitioning1(syst, shared);
then BackendDAE.DAE(systs, shared);

else inDAE;
end match;
end clockPartitioning;

Expand Down
5 changes: 4 additions & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -424,6 +424,8 @@ constant DebugFlag DISABLE_COMSUBEXP = DEBUG_FLAG(127, "disableComSubExp", false
Util.gettext("Deactivates module 'comSubExp'"));
constant DebugFlag NO_START_CALC = DEBUG_FLAG(128, "disableStartCalc", false,
Util.gettext("Deactivates the pre-calculation of start values during compile-time."));
constant DebugFlag NO_PARTITIONING = DEBUG_FLAG(129, "disablePartitioning", false,
Util.gettext("Deactivates partitioning of entire equation system."));

// 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 @@ -558,7 +560,8 @@ constant list<DebugFlag> allDebugFlags = {
DUMP_CSE_VERBOSE,
ADD_DER_ALIASES,
DISABLE_COMSUBEXP,
NO_START_CALC
NO_START_CALC,
NO_PARTITIONING
};

public
Expand Down

0 comments on commit 6823b02

Please sign in to comment.