Skip to content

Commit

Permalink
[NF] Convert equality of array type to DAE.ARRAY_EQUATION
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Oct 27, 2018
1 parent 8a234f0 commit 76f3ceb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/NFFrontEnd/NFConvertDAE.mo
Expand Up @@ -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()
Expand Down

0 comments on commit 76f3ceb

Please sign in to comment.