Skip to content

Commit

Permalink
- bugfix remove simple equations for uncertainty computations, nobody…
Browse files Browse the repository at this point in the history
… knows if i or j is the variable or the derivative

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11006 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Feb 2, 2012
1 parent 849c04a commit 0239c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -938,13 +938,13 @@ algorithm
// a = der(b)
case ({i,j},length,pos,syst as BackendDAE.EQSYSTEM(orderedVars=vars,orderedEqs=eqns),shared,mvars,mavars)
equation
var = BackendVariable.getVarAt(vars,intAbs(i));
false = BackendVariable.varHasUncertainValueRefine(var);
pos_1 = pos-1;
eqn = BackendDAEUtil.equationNth(eqns,pos_1);
(cr,_,es,_,negate) = BackendEquation.derivativeEquation(eqn);
// select candidate
((_::_),(k::_)) = BackendVariable.getVar(cr,vars);
var = BackendVariable.getVarAt(vars,intAbs(k));
false = BackendVariable.varHasUncertainValueRefine(var);
then (cr,k,es,syst,shared,mvars,mavars,2);
// a = b
case ({i,j},length,pos,syst as BackendDAE.EQSYSTEM(orderedEqs=eqns),shared,mvars,mavars)
Expand Down

0 comments on commit 0239c8e

Please sign in to comment.