Commit 236ddb9f authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

remove bug when using sse non mutual

parent c521f834
......@@ -524,7 +524,7 @@ public:
for(int idxNeighbors = 0 ; idxNeighbors < limiteNeighbors ; ++idxNeighbors){
if( inNeighbors[idxNeighbors] ){
const int nbParticlesSources = inNeighbors[idxNeighbors]->getNbParticles()/2;
const int nbParticlesSources = (inNeighbors[idxNeighbors]->getNbParticles()+1)/2;
const __m128d*const sourcesPhysicalValues = (const __m128d*)inNeighbors[idxNeighbors]->getPhysicalValues();
const __m128d*const sourcesX = (const __m128d*)inNeighbors[idxNeighbors]->getPositions()[0];
const __m128d*const sourcesY = (const __m128d*)inNeighbors[idxNeighbors]->getPositions()[1];
Supports Markdown
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