Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 545461b

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Accept DAE.MATRIX in codegen of array equation
1 parent abde81d commit 545461b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Compiler/SimCode/SimCodeUtil.mo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6228,7 +6228,9 @@ algorithm
62286228
// {z1,z2,..} = rhsexp -> solved for {z1,z2,..}
62296229
// => tmp = rhsexp;
62306230
// z1 = tmp[1]; z2 = tmp[2] ....
6231-
case (_, (BackendDAE.ARRAY_EQUATION(dimSize=ds, left=(e1 as DAE.ARRAY()), right=e2, source=source))::{}, _, _, _, _) equation
6231+
case (_, (BackendDAE.ARRAY_EQUATION(dimSize=ds, left=e1, right=e2, source=source))::{}, _, _, _, _)
6232+
guard Expression.isMatrix(e1) or Expression.isArray(e1)
6233+
equation
62326234
// Flattne multi-dimensional ARRAY{ARRAY} expressions
62336235
expLst = Expression.flattenArrayExpToList(e1);
62346236
// Replace the der() operators

0 commit comments

Comments
 (0)