Skip to content

Commit

Permalink
- remove hack that suppresses +d=execstat during initialization
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16496 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Jun 26, 2013
1 parent fb5462d commit 44acf02
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Compiler/BackEnd/Initialization.mo
Expand Up @@ -97,7 +97,6 @@ algorithm
list<tuple<BackendDAEUtil.pastoptimiseDAEModule, String, Boolean>> pastOptModules;
tuple<BackendDAEUtil.StructurallySingularSystemHandlerFunc, String, BackendDAEUtil.stateDeselectionFunc, String> daeHandler;
tuple<BackendDAEUtil.matchingAlgorithmFunc, String> matchingAlgorithm;
Boolean execstat;
list<BackendDAE.Var> dumpVars, dumpVars2;

case(_) equation
Expand Down Expand Up @@ -177,15 +176,9 @@ algorithm
matchingAlgorithm = BackendDAEUtil.getMatchingAlgorithm(NONE());
daeHandler = BackendDAEUtil.getIndexReductionMethod(NONE());

// suppress execstat
execstat = Flags.disableDebug(Flags.EXEC_STAT);

// solve system
initdae = BackendDAEUtil.transformBackendDAE(initdae, SOME((BackendDAE.NO_INDEX_REDUCTION(), BackendDAE.EXACT())), NONE(), NONE());

// reset execstat again
_ = Flags.set(Flags.EXEC_STAT, execstat);

// simplify system
(initdae, Util.SUCCESS()) = BackendDAEUtil.pastoptimiseDAE(initdae, pastOptModules, matchingAlgorithm, daeHandler);
Debug.fcall2(Flags.DUMP_INITIAL_SYSTEM, BackendDump.dumpBackendDAE, initdae, "solved initial system");
Expand Down

0 comments on commit 44acf02

Please sign in to comment.