Skip to content

Commit

Permalink
Accept DAE.MATRIX in codegen of array equation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jul 26, 2017
1 parent abde81d commit 545461b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -6228,7 +6228,9 @@ algorithm
// {z1,z2,..} = rhsexp -> solved for {z1,z2,..}
// => tmp = rhsexp;
// z1 = tmp[1]; z2 = tmp[2] ....
case (_, (BackendDAE.ARRAY_EQUATION(dimSize=ds, left=(e1 as DAE.ARRAY()), right=e2, source=source))::{}, _, _, _, _) equation
case (_, (BackendDAE.ARRAY_EQUATION(dimSize=ds, left=e1, right=e2, source=source))::{}, _, _, _, _)
guard Expression.isMatrix(e1) or Expression.isArray(e1)
equation
// Flattne multi-dimensional ARRAY{ARRAY} expressions
expLst = Expression.flattenArrayExpToList(e1);
// Replace the der() operators
Expand Down

0 comments on commit 545461b

Please sign in to comment.