Skip to content

Commit

Permalink
- expressions with unfixed parameters cannot moved to simple equation…
Browse files Browse the repository at this point in the history
…s because they are calculated before the unfixed parameter values are calculated, 2th try

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14194 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 2, 2012
1 parent f3e644a commit 5708e2a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -3254,12 +3254,9 @@ end traverseIncidenceMatrixList;
protected function toplevelInputOrUnfixed
input BackendDAE.Var inVar;
output Boolean b;
protected
Boolean b1,b2;
algorithm
b := BackendVariable.isVarOnTopLevelAndInput(inVar);
//b2 := BackendVariable.varFixed(inVar);
//b := b1 or (not b2);
b := BackendVariable.isVarOnTopLevelAndInput(inVar) or
BackendVariable.isParam(inVar) and not BackendVariable.varFixed(inVar);
end toplevelInputOrUnfixed;

protected function traversingTimeEqnsFinder "
Expand Down

0 comments on commit 5708e2a

Please sign in to comment.