Skip to content

Commit

Permalink
- do not call optimizeInitialSystem if +d=solveinitialsystem is used
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14545 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 25, 2012
1 parent fa316f9 commit 9f327c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -12328,7 +12328,7 @@ public function optimizeInitialSystem
input BackendDAE.BackendDAE inDAE;
output BackendDAE.BackendDAE outDAE;
algorithm
outDAE := match (inDAE)
outDAE := matchcontinue (inDAE)
local
BackendDAE.EqSystems systs;
BackendDAE.Variables knvars;
Expand All @@ -12338,14 +12338,16 @@ algorithm
Boolean optimizationfound;
case (BackendDAE.DAE(systs,BackendDAE.SHARED(knownVars=knvars,initialEqs=inieqns)))
equation
false = Flags.isSet(Flags.SOLVE_INITIAL_SYSTEM);
// search
initalAliases = HashTable2.emptyHashTable();
eqnlst = BackendEquation.equationList(inieqns);
(eqnlst,initalAliases,optimizationfound) = optimizeInitialSystem1(eqnlst,knvars,initalAliases,{},false);
then
// do optimization
optimizeInitialSystemWork(optimizationfound,inDAE,eqnlst,initalAliases);
end match;
else then inDAE;
end matchcontinue;
end optimizeInitialSystem;

protected function optimizeInitialSystemWork
Expand Down

0 comments on commit 9f327c4

Please sign in to comment.