Skip to content

Commit

Permalink
- Added missing flag +scalarizeMinMax.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15312 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Feb 25, 2013
1 parent 79013a3 commit 725c447
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Compiler/Util/Config.mo
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,11 @@ algorithm
outShowErrorMessages := Flags.getConfigBool(Flags.SHOW_ERROR_MESSAGES);
end showErrorMessages;

public function scalarizeMinMax
output Boolean outScalarizeMinMax;
algorithm
outScalarizeMinMax := Flags.getConfigBool(Flags.SCALARIZE_MINMAX);
end scalarizeMinMax;

end Config;

8 changes: 6 additions & 2 deletions Compiler/Util/Flags.mo
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ constant ConfigFlag MAXTRAVERSALS = CONFIG_FLAG(43, "maxTraversals",
Util.gettext("Maximal traversals to find find simple equations in the acausal system."));
constant ConfigFlag DUMP_TARGET = CONFIG_FLAG(44, "dumpTarget",
NONE(), EXTERNAL(), STRING_FLAG(""), NONE(),
Util.gettext("rederect the dump to file. If file ends with .html HTML code is generated."));
Util.gettext("Redirect the dump to file. If the file ends with .html HTML code is generated."));
constant ConfigFlag DELAY_BREAK_LOOP = CONFIG_FLAG(45, "delayBreakLoop",
NONE(), EXTERNAL(), BOOL_FLAG(true),NONE(),
Util.gettext("Enables (very) experimental code to break algebraic loops using the delay() operator. Probably messes with initialization."));
Expand All @@ -770,6 +770,9 @@ constant ConfigFlag TEARING_METHOD = CONFIG_FLAG(46, "tearingMethod",
("olleroAmselem", Util.gettext("Ollero-Amselem tearing")),
("steward", Util.gettext("Steward tearing"))})),
Util.gettext("tearing method to use.select no tearing or choose tearing method"));
constant ConfigFlag SCALARIZE_MINMAX = CONFIG_FLAG(47, "scalarizeMinMax",
NONE(), EXTERNAL(), BOOL_FLAG(false), NONE(),
Util.gettext("Scalarizes the builtin min/max reduction operators if true."));

// This is a list of all configuration flags. A flag can not be used unless it's
// in this list, and the list is checked at initialization so that all flags are
Expand Down Expand Up @@ -820,7 +823,8 @@ constant list<ConfigFlag> allConfigFlags = {
MAXTRAVERSALS,
DUMP_TARGET,
DELAY_BREAK_LOOP,
TEARING_METHOD
TEARING_METHOD,
SCALARIZE_MINMAX
};

public function new
Expand Down

0 comments on commit 725c447

Please sign in to comment.