Skip to content

Commit f4acdb0

Browse files
committed
Ensure the field has parallel slices
1 parent bfaf986 commit f4acdb0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/bout/parallel_boundary_region.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ public:
231231

232232
template <bool check = true>
233233
BoutReal& getAt(Field3D& f, int off) const {
234+
ASSERT4(f.hasParallelSlices());
234235
if constexpr (check) {
235236
ASSERT3(valid() > -off - 2);
236237
}
@@ -239,6 +240,7 @@ public:
239240
}
240241
template <bool check = true>
241242
const BoutReal& getAt(const Field3D& f, int off) const {
243+
ASSERT4(f.hasParallelSlices());
242244
if constexpr (check) {
243245
ASSERT3(valid() > -off - 2);
244246
}

0 commit comments

Comments
 (0)