Skip to content

Commit

Permalink
[NF] Fix DAE conversion of / operator.
Browse files Browse the repository at this point in the history
- Element-wise division of arrays should use DAE.DIV_ARR and not
  DAE.DIV.

Belonging to [master]:
  - OpenModelica/OMCompiler#2848
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 7, 2019
1 parent 8ad5de1 commit b839fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFOperator.mo
Expand Up @@ -148,7 +148,7 @@ public
case Op.ADD then if Type.isArray(op.ty) then DAE.ADD_ARR(ty) else DAE.ADD(ty);
case Op.SUB then if Type.isArray(op.ty) then DAE.SUB_ARR(ty) else DAE.SUB(ty);
case Op.MUL then if Type.isArray(op.ty) then DAE.MUL_ARR(ty) else DAE.MUL(ty);
case Op.DIV then DAE.DIV(ty);
case Op.DIV then if Type.isArray(op.ty) then DAE.DIV_ARR(ty) else DAE.DIV(ty);
case Op.POW then DAE.POW(ty);
case Op.ADD_SCALAR_ARRAY algorithm swapArguments := true; then DAE.ADD_ARRAY_SCALAR(ty);
case Op.ADD_ARRAY_SCALAR then DAE.ADD_ARRAY_SCALAR(ty);
Expand Down

0 comments on commit b839fa1

Please sign in to comment.