Skip to content

Commit 95c7ff8

Browse files
committed
Remove unused HasFinerNeighbors tracking
Keep PR focused on coarser neighbor optimization
1 parent 67ebcad commit 95c7ff8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/mesh/mesh-gmg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ void SetMeshBlockNeighbors(Mesh *pmesh, GridIdentifier grid_id, BlockList_t &blo
9696
if (grid_id.type == GridType::leaf) {
9797
pmb->neighbors = all_neighbors;
9898
for (const auto &n : all_neighbors) {
99-
if (n.loc.level() > pmb->loc.level()) pmb->has_finer_neighbors_ = true;
100-
if (n.loc.level() < pmb->loc.level()) pmb->has_coarser_neighbors_ = true;
99+
if (n.loc.level() < pmb->loc.level())
100+
pmb->has_coarser_neighbors_ = true;
101101
}
102102
} else if (grid_id.type == GridType::two_level_composite &&
103103
pmb->loc.level() == grid_id.logical_level) {

src/mesh/meshblock.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ class MeshBlock : public std::enable_shared_from_this<MeshBlock> {
202202
}
203203

204204
bool HasCoarserNeighbors() const { return has_coarser_neighbors_; }
205-
bool HasFinerNeighbors() const { return has_finer_neighbors_; }
206205

207206
BoundaryFlag boundary_flag[6];
208207

@@ -504,7 +503,6 @@ class MeshBlock : public std::enable_shared_from_this<MeshBlock> {
504503
std::vector<NeighborBlock> gmg_leaf_neighbors;
505504

506505
bool has_coarser_neighbors_ = false;
507-
bool has_finer_neighbors_ = false;
508506
};
509507

510508
using BlockList_t = std::vector<std::shared_ptr<MeshBlock>>;

0 commit comments

Comments
 (0)