Skip to content

Commit

Permalink
[BE] Added flag -d=fullASSC
Browse files Browse the repository at this point in the history
  - experimental full conversion for ASSC
  • Loading branch information
kabdelhak authored and adrpo committed Nov 12, 2019
1 parent 7e79eec commit 7f85451
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo
Expand Up @@ -4415,7 +4415,7 @@ algorithm
for now also only resolve singularities and not replace full loop
otherwise it sometimes leads to mixed determined systems
*/
if boolArr[r] and listEmpty(rowArr[r]) then
if boolArr[r] and (listEmpty(rowArr[r]) or Flags.getConfigBool(Flags.FULL_ASSC)) then
(i_arr, i_scal) := idxArr[r];
/* remove assignments */
ass2[ass1[i_scal]] := -1;
Expand Down
7 changes: 6 additions & 1 deletion OMCompiler/Compiler/Util/Flags.mo
Expand Up @@ -1514,6 +1514,10 @@ constant ConfigFlag NO_ASSC = CONFIG_FLAG(132, "noASSC",
NONE(), EXTERNAL(), BOOL_FLAG(false), NONE(),
Util.gettext("Disables analytical to structural singularity conversion."));

constant ConfigFlag FULL_ASSC = CONFIG_FLAG(133, "fullASSC",
NONE(), EXTERNAL(), BOOL_FLAG(false), NONE(),
Util.gettext("Disables analytical to structural singularity conversion."));

protected
// 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 @@ -1650,7 +1654,8 @@ constant list<ConfigFlag> allConfigFlags = {
INITIAL_STATE_SELECTION,
STRICT,
LINEARIZATION_DUMP_LANGUAGE,
NO_ASSC
NO_ASSC,
FULL_ASSC
};

public function new
Expand Down

0 comments on commit 7f85451

Please sign in to comment.