Skip to content

Commit

Permalink
voloctree: fix _recoverPartition method
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocisternino committed Jan 19, 2024
1 parent 386261f commit 88b7135
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/voloctree/voloctree_mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1237,13 +1237,21 @@ bool VolOctreeMapper::_recoverPartition()
for (int reference_rank : toreference_rank[m_rank]) {
uint64_t reference_first_morton = partitionFDReference[reference_rank];
uint64_t reference_last_morton = partitionLDReference[reference_rank];
// Initialize idx position in mapped tree to the first mapped
// octant inside the overlapping region
while (morton < reference_first_morton) {
idx++;
if (idx == mappedPatch->getTree().getNumOctants()) {
break;
}
morton = mappedPatch->getTree().getLastDescMorton(idx);
}
if (idx == mappedPatch->getTree().getNumOctants()) {
continue;
}
// Fill partitioning info structure with mapped octants in the
// overlapping region
morton = mappedPatch->getTree().getMorton(idx);
while (morton < reference_last_morton) {
Octant oct = *mappedPatch->getTree().getOctant(idx);
list_octant[reference_rank].push_back(oct);
Expand Down

0 comments on commit 88b7135

Please sign in to comment.