Skip to content

Commit

Permalink
- bugfix createOdeSystem2 for arrays
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5773 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jul 1, 2010
1 parent a6335a6 commit 425b379
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Compiler/SimCode.mo
Expand Up @@ -2829,7 +2829,7 @@ algorithm
be solved during runtime. */
case (mixedEvent,_,(d as DAELow.DAELOW(orderedVars = v,knownVars = kv,orderedEqs = eqn, arrayEqs = arrayEqs)),SOME(jac),DAELow.JAC_TIME_VARYING(),block_,helpVarInfo)
local
list<DAELow.Var> dlowVars,dlowVars1;
list<DAELow.Var> dlowVars;
list<SimVar> simVars;
list<DAELow.Equation> dlowEqs;
list<DAE.Exp> beqs;
Expand All @@ -2841,8 +2841,7 @@ algorithm
dlowVars = DAELow.varList(v);
simVars = Util.listMap(dlowVars, dlowvarToSimvar);
dlowEqs = DAELow.equationList(eqn);
dlowVars1 = listReverse(dlowVars);
dlowEqsVars = Util.listThreadTuple(dlowEqs,dlowVars1);
dlowEqsVars = Util.listThreadTuple(dlowEqs,dlowVars);
beqs = Util.listMap2(dlowEqsVars, dlowEqToExp, v, arrayEqs);
simJac = Util.listMap1(jac, jacToSimjac, v);
then
Expand Down

0 comments on commit 425b379

Please sign in to comment.