From 76f3cebd41f1d82887a4665e6b4f8fc1cbc2c3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Franke?= Date: Sat, 27 Oct 2018 15:14:27 +0200 Subject: [PATCH] [NF] Convert equality of array type to DAE.ARRAY_EQUATION Belonging to [master]: - OpenModelica/OMCompiler#2743 - OpenModelica/OpenModelica-testsuite#1063 --- Compiler/NFFrontEnd/NFConvertDAE.mo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Compiler/NFFrontEnd/NFConvertDAE.mo b/Compiler/NFFrontEnd/NFConvertDAE.mo index 561c1115335..8b2f8b2d1b6 100644 --- a/Compiler/NFFrontEnd/NFConvertDAE.mo +++ b/Compiler/NFFrontEnd/NFConvertDAE.mo @@ -461,7 +461,10 @@ algorithm e2 := Expression.toDAE(eq.rhs); then (if Type.isComplex(eq.ty) then - DAE.Element.COMPLEX_EQUATION(e1, e2, eq.source) else + DAE.Element.COMPLEX_EQUATION(e1, e2, eq.source) + elseif Type.isArray(eq.ty) then + DAE.Element.ARRAY_EQUATION(list(Dimension.toDAE(d) for d in Type.arrayDims(eq.ty)), e1, e2, eq.source) + else DAE.Element.EQUATION(e1, e2, eq.source)) :: elements; case Equation.CREF_EQUALITY()