Skip to content

Commit

Permalink
- inline array=array before state selection
Browse files Browse the repository at this point in the history
- move Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.mos to working tests

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12674 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Aug 25, 2012
1 parent 6f8939d commit 83ea71a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/BackEnd/IndexReduction.mo
Expand Up @@ -1343,6 +1343,8 @@ algorithm
case (_,_,_,_,_,_,_,_)
equation
(orgeqns,eqnslst,eqnindxlst) = getOrgEqn(orgEqnsLst,{},{},{});
// inline array eqns
eqnslst = List.fold(eqnslst,BackendDAEOptimize.getScalarArrayEqns1,{});
eqns = BackendDAEUtil.listEquation(eqnslst);
(hov_1,dummyStates,lov,syst,shared) = selectDummyDerivatives(cvars,BackendVariable.numVariables(cvars),eqns,BackendDAEUtil.equationSize(eqns),eqnindxlst,hov1,inDummyStates,isyst,ishared,so,BackendDAEUtil.emptyVars());
// get derivatives one order less
Expand Down

0 comments on commit 83ea71a

Please sign in to comment.