Commit 2ad103ba authored by BRAMAS Berenger's avatar BRAMAS Berenger

Ensure group seq algo work with specific levels

parent 48d763c1
......@@ -51,7 +51,9 @@ protected:
if(operationsToProceed & FFmmL2L) downardPass();
if( (operationsToProceed & FFmmP2P) || (operationsToProceed & FFmmL2P) ) directPass();
if( (operationsToProceed & FFmmP2P) || (operationsToProceed & FFmmL2P) ){
directPass((operationsToProceed & FFmmP2P), (operationsToProceed & FFmmL2P));
}
}
void bottomPass(){
......@@ -289,9 +291,9 @@ protected:
FLOG( FLog::Controller << "\t\t downardPass in " << timer.tacAndElapsed() << "s\n" );
}
void directPass(){
void directPass(const bool p2pEnabled, const bool l2pEnabled){
FLOG( FTic timer; );
{
if(l2pEnabled){
typename OctreeClass::ParticleGroupIterator iterParticles = tree->leavesBegin();
const typename OctreeClass::ParticleGroupIterator endParticles = tree->leavesEnd();
......@@ -319,7 +321,7 @@ protected:
FAssertLF(iterParticles == endParticles && iterCells == endCells);
}
{
if(p2pEnabled){
typename OctreeClass::ParticleGroupIterator iterParticles = tree->leavesBegin();
const typename OctreeClass::ParticleGroupIterator endParticles = tree->leavesEnd();
......
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