Commit 2832bb57 authored by berenger-bramas's avatar berenger-bramas

Remove an Error in the find interaction list.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@380 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 854ec4ae
......@@ -798,9 +798,9 @@ public:
// For each child
for(int idxCousin = 0 ; idxCousin < 8 ; ++idxCousin){
if(cells[idxCousin]){
const int xdiff = workingCell.getX() - ((otherParent.getX()<<1) | ( (idxCousin>>2) & 1));
const int ydiff = workingCell.getY() - ((otherParent.getY()<<1) | ( (idxCousin>>1) & 1));
const int zdiff = workingCell.getZ() - ((otherParent.getZ()<<1) | (idxCousin&1));
const int xdiff = ((otherParent.getX()<<1) | ( (idxCousin>>2) & 1)) - workingCell.getX();
const int ydiff = ((otherParent.getY()<<1) | ( (idxCousin>>1) & 1)) - workingCell.getY();
const int zdiff = ((otherParent.getZ()<<1) | (idxCousin&1)) - workingCell.getZ();
// Test if it is a direct neighbor
if(FMath::Abs(xdiff) > 1 || FMath::Abs(ydiff) > 1 || FMath::Abs(zdiff) > 1){
......
......@@ -281,10 +281,10 @@ private:
octreeIterator = avoidGotoLeftIterator;
FDEBUG(computationCounter.tic());
#pragma omp parallel
#pragma omp parallel
{
KernelClass * const myThreadkernels = kernels[omp_get_thread_num()];
#pragma omp for nowait
#pragma omp for nowait
for(int idxCell = 0 ; idxCell < numberOfCells ; ++idxCell){
myThreadkernels->L2L( iterArray[idxCell].getCurrentCell() , iterArray[idxCell].getCurrentChild(), idxLevel);
}
......
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