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

Commit b839fa1

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix DAE conversion of / operator.
- Element-wise division of arrays should use DAE.DIV_ARR and not DAE.DIV. Belonging to [master]: - #2848
1 parent 8ad5de1 commit b839fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Compiler/NFFrontEnd/NFOperator.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public
148148
case Op.ADD then if Type.isArray(op.ty) then DAE.ADD_ARR(ty) else DAE.ADD(ty);
149149
case Op.SUB then if Type.isArray(op.ty) then DAE.SUB_ARR(ty) else DAE.SUB(ty);
150150
case Op.MUL then if Type.isArray(op.ty) then DAE.MUL_ARR(ty) else DAE.MUL(ty);
151-
case Op.DIV then DAE.DIV(ty);
151+
case Op.DIV then if Type.isArray(op.ty) then DAE.DIV_ARR(ty) else DAE.DIV(ty);
152152
case Op.POW then DAE.POW(ty);
153153
case Op.ADD_SCALAR_ARRAY algorithm swapArguments := true; then DAE.ADD_ARRAY_SCALAR(ty);
154154
case Op.ADD_ARRAY_SCALAR then DAE.ADD_ARRAY_SCALAR(ty);

0 commit comments

Comments
 (0)