Commit ddf35b57 authored by BRAMAS Berenger's avatar BRAMAS Berenger

Should do P2P until counter in opencl

parent 2193648b
......@@ -458,7 +458,7 @@ void P2P(const int3 pos,
return;// TODO
long long cumul = sources.nbParticles-1;
for(int idxNeigh = 0 ; idxNeigh < 27 ; ++idxNeigh){
for(int idxNeigh = 0 ; idxNeigh < counter ; ++idxNeigh){
if(FOpenCLGroupAttachedLeaf_isAttachedToSomething(&directNeighborsParticles[idxNeigh])){
cumul += directNeighborsParticles[idxNeigh].nbParticles;
}
......
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