Skip to content

Commit

Permalink
Allow dividing by all globalKnownVars in initDAE
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Jul 17, 2017
1 parent 88fee4f commit d2c74c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/BackEnd/Initialization.mo
Expand Up @@ -211,6 +211,9 @@ algorithm
execStat("matching and sorting (n="+String(BackendDAEUtil.daeSize(initdae))+") (initialization)");

// simplify system
if not stringEq(Config.simCodeTarget(), "Cpp") then
initdae := BackendDAEUtil.setDAEGlobalKnownVars(initdae, outGlobalKnownVars);
end if;
initOptModules := BackendDAEUtil.getInitOptModules(NONE());
matchingAlgorithm := BackendDAEUtil.getMatchingAlgorithm(NONE());
daeHandler := BackendDAEUtil.getIndexReductionMethod(SOME("none"));
Expand Down

0 comments on commit d2c74c0

Please sign in to comment.