Skip to content

Commit

Permalink
- minor changes to dummy state selection heuristic
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11820 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Apr 28, 2012
1 parent 26ba7dc commit f7a3498
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Compiler/BackEnd/BackendDAETransform.mo
Expand Up @@ -6043,18 +6043,18 @@ algorithm
eqn = BackendDAEUtil.equationNth(eqns,e-1);
true = isStateConstraintEquation(cr,eqn,vars);
then -1.0;
case(_,e::eqnLst,_,_,_)
equation
eqn = BackendDAEUtil.equationNth(eqns,e-1);
true = isStateAssignEquation(cr,eqn,vars,knvars);
then -0.5;
case(_,e::eqnLst,_,_,_)
equation
eqn = BackendDAEUtil.equationNth(eqns,e-1);
(_,dcr,_,_,_) = BackendEquation.derivativeEquation(eqn);
false = ComponentReference.crefEqualNoStringCompare(cr,dcr);
true = BackendVariable.isState(dcr,vars);
then +0.5;
case(_,e::eqnLst,_,_,_)
equation
eqn = BackendDAEUtil.equationNth(eqns,e-1);
true = isStateAssignEquation(cr,eqn,vars,knvars);
then -0.05;
case(_,_::eqnLst,_,_,_) then varStateSelectHeuristicPrio1(cr,eqnLst,vars,knvars,eqns);
end matchcontinue;
end varStateSelectHeuristicPrio1;
Expand Down

0 comments on commit f7a3498

Please sign in to comment.