Skip to content

Commit

Permalink
add setAll to parallel BC
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Jan 20, 2025
1 parent f73813b commit ff7525d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/bout/parallel_boundary_region.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ public:
}
}

void setAll(Field3D& f, const BoutReal val) const {
for (int i = -localmesh->ystart; i <= localmesh->ystart; ++i) {
f.ynext(i)[ind().yp(i)] = val;
}
}

template <bool check = true>
BoutReal& getAt(Field3D& f, int off) const {
if constexpr (check) {
Expand Down

0 comments on commit ff7525d

Please sign in to comment.