Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patchkernel: improve adaption/partitioning tracking #370

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/PABLO/LocalTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ namespace bitpit {
uint32_t firstChildIdx = futureIdx - (nChildren - 1);
fatherOctant.buildChildren(m_octants.data() + firstChildIdx);

// Set children information
for (int i = 0; i < nChildren; ++i) {
m_octants[firstChildIdx + i].m_info[Octant::INFO_NEW4REFINEMENT] = true;
}

// Update the mapping
if(!mapidx.empty()){
for (uint8_t i=0; i<nChildren; i++){
Expand Down
2 changes: 0 additions & 2 deletions src/PABLO/Octant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,6 @@ void Octant::buildChildren(Octant *children) const {
uint32_t dh = oct.getLogicalSize();
oct.m_morton = PABLO::computeMorton(m_dim, coords[0] + dh * dx, coords[1] + dh * dy, coords[2] + dh * dz);

oct.m_info[OctantInfo::INFO_NEW4REFINEMENT] = true;

oct.m_info[INFO_BOUNDFACE0 + xf] = false;
oct.m_info[INFO_BOUNDFACE0 + yf] = false;
oct.m_info[INFO_BOUNDFACE0 + zf] = false;
Expand Down
3 changes: 1 addition & 2 deletions src/containers/piercedKernel.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,12 +1911,11 @@ void PiercedKernel<id_t>::holesClearPending(bool release)
template<typename id_t>
void PiercedKernel<id_t>::holesResize(std::size_t offset, std::size_t nRegulars, std::size_t nPendings, bool release)
{
m_holes.resize(offset + nRegulars + MAX_PENDING_HOLES);
if (release) {
m_holes.shrink_to_fit();
}

m_holes.resize(offset + nRegulars + MAX_PENDING_HOLES);

m_holes_regular_begin = offset;
m_holes_regular_end = m_holes_regular_begin + nRegulars;
m_holes_pending_begin = m_holes_regular_end;
Expand Down
Loading
Loading