Commit ae26da3d authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille

Finish debug in C API part

parent 33d6df11
......@@ -510,7 +510,7 @@ public:
position[2] = boxCorner.getZ() + currCoord.getZ()*boxwidth/double(1<<currLevel);
leaf->getSrc()->setContainer(CoreCell::GetInitLeaf()(currLevel,leaf->getSrc()->getNbParticles(),
leaf->getSrc()->getIndexes().data(), currMorton,
position, currCell->getContainer(), this->kernel));
position, currCell->getContainer(), this->kernel->getUserKernelDatas()));
});
}
......@@ -518,7 +518,8 @@ public:
void free_cell(Callback_free_cell user_cell_deallocator, Callback_free_leaf free_leaf){
octree->forEachCellLeaf([&](CoreCell * currCell, LeafClass * leaf){
free_leaf(currCell->getContainer(),leaf->getSrc()->getNbParticles(), leaf->getSrc()->getIndexes().data(),leaf->getSrc()->getContainer(),this->kernel);
free_leaf(currCell->getContainer(),leaf->getSrc()->getNbParticles(), leaf->getSrc()->getIndexes().data(),
leaf->getSrc()->getContainer(),this->kernel->getUserKernelDatas());
});
octree->forEachCell([&](CoreCell * currCell){
if(currCell->getContainer()){
......
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