Skip to content

Commit

Permalink
PABLO: optimize generation of expected octant adaption
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed Nov 9, 2020
1 parent 0aee59b commit 18c3cbe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/PABLO/ParaTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3291,12 +3291,13 @@ namespace bitpit {
return;
}

result->clear();
if (marker > 0){
octvector children = oct->buildChildren();
result->swap(children);
uint8_t nChildren = oct->countChildren();
result->resize(nChildren);
oct->buildChildren(result->data());
}
else if (marker < 0){
result->clear();
result->push_back(oct->buildFather());
}

Expand Down

0 comments on commit 18c3cbe

Please sign in to comment.