Skip to content
Snippets Groups Projects
Commit d3b385c5 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

[BUGFIX] potential deadlock

When processes contain no blocks after refinement the neighbor list
is not correctly reset.
parent 04094a1a
No related merge requests found
......@@ -45,11 +45,13 @@ void BlockForestDomain::refresh()
periodic_[1] = blockForest_->isPeriodic(1);
periodic_[2] = blockForest_->isPeriodic(2);
if (blockForest_->empty()) return;
localAABBs_.clear();
neighborSubdomains_.clear();
neighborProcesses_.clear();
unionOfLocalAABBs_ = math::AABB(Vec3(real_t(0)), Vec3(real_t(0)));
if (blockForest_->empty()) return;
unionOfLocalAABBs_ = blockForest_->begin()->getAABB();
for (auto& iBlk : *blockForest_)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment