Skip to content

Commit 1711cf1

Browse files
committed
Add const version
1 parent 4480e1d commit 1711cf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/bout/field2d.hxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ public:
282282
int size() const override { return nx * ny; }
283283

284284
Field2D& asField3DParallel() { return *this; }
285+
const Field2D& asField3DParallel() const { return *this; }
285286

286287
private:
287288
/// Internal data array. Handles allocation/freeing of memory

0 commit comments

Comments
 (0)