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

Commit cf3c2d4

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix DAE conversion of ^ operator.
- Element-wise exponentiation of arrays should use DAE.POW_ARR2 and not DAE.POW. Belonging to [master]: - #2849
1 parent b839fa1 commit cf3c2d4

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
@@ -149,7 +149,7 @@ public
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);
151151
case Op.DIV then if Type.isArray(op.ty) then DAE.DIV_ARR(ty) else DAE.DIV(ty);
152-
case Op.POW then DAE.POW(ty);
152+
case Op.POW then if Type.isArray(op.ty) then DAE.POW_ARR2(ty) else 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);
155155
case Op.SUB_SCALAR_ARRAY then DAE.SUB_SCALAR_ARRAY(ty);

0 commit comments

Comments
 (0)