Commit d3b385c5 authored by Sebastian Eibl's avatar Sebastian Eibl

[BUGFIX] potential deadlock

When processes contain no blocks after refinement the neighbor list
is not correctly reset.
parent 04094a1a
Pipeline #22545 passed with stages
in 496 minutes and 36 seconds
......@@ -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_)
{
......
Markdown is supported
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