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

Commit

Permalink
move findZeroCrossings to a postOptModule
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Nov 3, 2016
1 parent 1081354 commit 3cd68ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Compiler/BackEnd/BackendDAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6781,9 +6781,6 @@ algorithm
// post-optimization phase
simDAE := postOptimizeDAE(simDAE, postOptModules, matchingAlgorithm, daeHandler);

simDAE := FindZeroCrossings.findZeroCrossings(simDAE);
execStat("findZeroCrossings");

outSimDAE := calculateValues(simDAE);
execStat("calculateValue");

Expand Down Expand Up @@ -7369,6 +7366,7 @@ protected function allPostOptimizationModules
(BackendDAEOptimize.simplifyTimeIndepFuncCalls, "simplifyTimeIndepFuncCalls"),
(BackendDAEOptimize.simplifyAllExpressions, "simplifyAllExpressions"),
(BackendDAEOptimize.hets, "hets"),
(FindZeroCrossings.findZeroCrossings, "findZeroCrossings"),
// TODO: move the following modules to the correct position
(BackendDump.dumpComponentsGraphStr, "dumpComponentsGraphStr"),
(BackendDump.dumpDAE, "dumpDAE"),
Expand Down
3 changes: 2 additions & 1 deletion Compiler/Util/Flags.mo
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,8 @@ constant ConfigFlag POST_OPT_MODULES = CONFIG_FLAG(16, "postOptModules",
"detectJacobianSparsePattern",
"removeConstants",
"simplifyTimeIndepFuncCalls",
"simplifyAllExpressions"
"simplifyAllExpressions",
"findZeroCrossings"
}),
SOME(STRING_DESC_OPTION({
("addScaledVars_states", Util.notrans("added var_norm = var/nominal, where var is state")),
Expand Down

0 comments on commit 3cd68ac

Please sign in to comment.