Skip to content

Commit

Permalink
[NB] dont create wrong array equations (#11565)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabdelhak committed Nov 13, 2023
1 parent 7b9f8ec commit 6dc855b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion OMCompiler/Compiler/NBackEnd/Classes/NBackendDAE.mo
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ protected
case FEquation.EQUALITY(lhs = lhs, rhs = rhs, ty = ty, source = source) algorithm
attr := lowerEquationAttributes(ty, init);
result := match ty
case Type.ARRAY() then {Pointer.create(BEquation.ARRAY_EQUATION(ty, lhs, rhs, source, attr, Type.complexSize(ty)))};
case Type.COMPLEX() then {Pointer.create(BEquation.RECORD_EQUATION(ty, lhs, rhs, source, attr, Type.sizeOf(ty)))};
case Type.TUPLE() then {Pointer.create(BEquation.RECORD_EQUATION(ty, lhs, rhs, source, attr, Type.sizeOf(ty)))};
else {Pointer.create(BEquation.SCALAR_EQUATION(ty, lhs, rhs, source, attr))};
Expand Down

0 comments on commit 6dc855b

Please sign in to comment.