Skip to content

Commit 5d7bfcb

Browse files
committed
fields_item: rename func to maybe_...
1 parent dbcb77c commit 5d7bfcb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/include/fields_item.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ inline std::vector<std::string> addKindSuffix(
3535
// ItemMomentBnd
3636

3737
template <typename FE>
38-
void add_ghosts_boundary(const Grid_t& grid, FE& mres_gt, const Int3& ib, int p,
39-
int mb, int me, centering::Centering c)
38+
void maybe_add_ghosts_boundary(const Grid_t& grid, FE& mres_gt, const Int3& ib,
39+
int p, int mb, int me, centering::Centering c)
4040
{
4141
if (c == centering::CC) {
4242
// lo
@@ -81,7 +81,7 @@ public:
8181
void add_ghosts(const Grid_t& grid, storage_type& mres_gt, const Int3& ib)
8282
{
8383
for (int p = 0; p < mres_gt.shape(4); p++) {
84-
add_ghosts_boundary(grid, mres_gt, ib, p, 0, mres_gt.shape(3), C);
84+
maybe_add_ghosts_boundary(grid, mres_gt, ib, p, 0, mres_gt.shape(3), C);
8585
}
8686

8787
bnd_.add_ghosts(grid, mres_gt, ib, 0, mres_gt.shape(3));

0 commit comments

Comments
 (0)