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 Dec 23, 2020
1 parent 735ca2d commit 0faf2bf
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 0faf2bf

Please sign in to comment.