Skip to content

Commit

Permalink
- tear only time continues part of mixed equation system
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12879 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Sep 11, 2012
1 parent 5546db6 commit db1f9fd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -9594,17 +9594,17 @@ algorithm
case (_,_,
(comp as BackendDAE.EQUATIONSYSTEM(eqns=eindex,vars=vindx,jac=ojac,jacType=jacType))::comps,_,_)
equation
(comp1,b) = tearingSystemNew1_1(isyst,ishared,eindex,vindx,ojac,jacType);
acc = List.consOnTrue(b, comp1, iAcc);
(acc,b1) = tearingSystemNew1(isyst,ishared,comps,b or iRunMatching,acc);
(comp1,true) = tearingSystemNew1_1(isyst,ishared,eindex,vindx,ojac,jacType);
(acc,b1) = tearingSystemNew1(isyst,ishared,comps,true,comp1::iAcc);
then
(acc,b1);
case (_,_,(comp as BackendDAE.MIXEDEQUATIONSYSTEM(condSystem=comp1))::comps,_,_)
case (_,_,(comp as BackendDAE.MIXEDEQUATIONSYSTEM(condSystem=comp1,disc_eqns=eindex,disc_vars=vindx))::comps,_,_)
equation
(eindex,vindx) = BackendDAETransform.getEquationAndSolvedVarIndxes(comp);
(comp1,b) = tearingSystemNew1_1(isyst,ishared,eindex,vindx,NONE(),BackendDAE.JAC_NO_ANALYTIC());
acc = List.consOnTrue(b, comp1, iAcc);
(acc,b1) = tearingSystemNew1(isyst,ishared,comps,b or iRunMatching,acc);
//(eindex,vindx) = BackendDAETransform.getEquationAndSolvedVarIndxes(comp);
//(comp1,true) = tearingSystemNew1_1(isyst,ishared,eindex,vindx,NONE(),BackendDAE.JAC_NO_ANALYTIC());
//(acc,b1) = tearingSystemNew1(isyst,ishared,comps,true,comp1::iAcc);
(comp1::_,true) = tearingSystemNew1(isyst,ishared,{comp1},false,{});
(acc,b1) = tearingSystemNew1(isyst,ishared,comps,true,BackendDAE.MIXEDEQUATIONSYSTEM(comp1,eindex,vindx)::iAcc);
then
(acc,b1);
case (_,_,comp::comps,_,_)
Expand Down

0 comments on commit db1f9fd

Please sign in to comment.