Commit 7c26615e authored by BRAMAS Berenger's avatar BRAMAS Berenger

update group algorithm and tree

parent ec1f512d
......@@ -284,7 +284,7 @@ protected:
if(cell){
ParticleContainerClass particles = (*iterParticles)->template getLeaf<ParticleContainerClass>(mindex);
FAssertLF(particles.isAttachedToSomething());
kernels->P2M(cell, &particles);
kernels->L2P(cell, &particles);
}
}
}
......
......@@ -419,10 +419,9 @@ public:
while(iterCells != iterEndCells && iterLeaves != iterEndLeaves){
(*iterCells)->forEachCell([&](CellClass* aCell){
ParticlesAttachedClass aLeaf = (*iterLeaves)->getLeaf(aCell->getMortonIndex());
ParticlesAttachedClass aLeaf = (*iterLeaves)->template getLeaf <ParticlesAttachedClass>(aCell->getMortonIndex());
FAssertLF(aLeaf.isAttachedToSomething());
function(aCell, aLeaf);
delete aLeaf;
function(aCell, &aLeaf);
});
++iterCells;
......
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