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

Commit 76f3ceb

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
[NF] Convert equality of array type to DAE.ARRAY_EQUATION
Belonging to [master]: - #2743 - OpenModelica/OpenModelica-testsuite#1063
1 parent 8a234f0 commit 76f3ceb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Compiler/NFFrontEnd/NFConvertDAE.mo

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,10 @@ algorithm
461461
e2 := Expression.toDAE(eq.rhs);
462462
then
463463
(if Type.isComplex(eq.ty) then
464-
DAE.Element.COMPLEX_EQUATION(e1, e2, eq.source) else
464+
DAE.Element.COMPLEX_EQUATION(e1, e2, eq.source)
465+
elseif Type.isArray(eq.ty) then
466+
DAE.Element.ARRAY_EQUATION(list(Dimension.toDAE(d) for d in Type.arrayDims(eq.ty)), e1, e2, eq.source)
467+
else
465468
DAE.Element.EQUATION(e1, e2, eq.source)) :: elements;
466469

467470
case Equation.CREF_EQUALITY()

0 commit comments

Comments
 (0)