Commit 979e9ced authored by berenger-bramas's avatar berenger-bramas
Browse files

Update the fmm mpi vers. P2P to store only leafs that will

be used to compute.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@88 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 43dbd9f7
......@@ -804,22 +804,25 @@ public:
FDEBUG( FDebug::Controller.write("\tStart Direct Pass\n").write(FDebug::Flush); );
FDEBUG(FTic counterTime);
const int LeafIndex = OctreeHeight - 1;
int leafs = 0;
{
OctreeIterator octreeIterator(tree);
octreeIterator.gotoBottomLeft();
// for each cells
do{
iterArray[leafs] = octreeIterator;
++leafs;
} while(octreeIterator.moveRight());
for(int idxLeaf = 0 ; idxLeaf < this->leafLeft ; ++idxLeaf){
octreeIterator.moveRight();
}
for(int idxLeaf = this->leafLeft ; idxLeaf <= this->leafRight ; ++idxLeaf){
iterArray[idxLeaf] = octreeIterator;
octreeIterator.moveRight();
}
}
FDEBUG(FTic computationCounter);
const int startIdx = getLeft(leafs);
const int endIdx = getRight(leafs);
const int LeafIndex = OctreeHeight - 1;
const int startIdx = this->leafLeft;
const int endIdx = this->leafRight + 1;
#pragma omp parallel
{
......
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