Skip to content

Commit

Permalink
Merge pull request #2988 from boutproject/next-boutmask-assign
Browse files Browse the repository at this point in the history
BoutMask non-const operator[](Ind3D)
  • Loading branch information
ZedThree authored Oct 9, 2024
2 parents 3a91595 + 7125330 commit 837296e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/bout/mask.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public:

inline bool& operator()(int jx, int jy, int jz) { return mask(jx, jy, jz); }
inline const bool& operator()(int jx, int jy, int jz) const { return mask(jx, jy, jz); }

inline bool& operator[](const Ind3D& i) { return mask[i]; }
inline const bool& operator[](const Ind3D& i) const { return mask[i]; }
};

Expand Down

0 comments on commit 837296e

Please sign in to comment.