Commit 88fcd84e authored by berenger-bramas's avatar berenger-bramas

Add the openmp scheduler dynamic on M2L

(I forgot to add it since I tested it on platfrim).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@144 2616d619-271b-44dc-8df4-d4a8f33a7222
parent d4ec6a47
......@@ -231,7 +231,7 @@ public:
KernelClass * const myThreadkernels = kernels[omp_get_thread_num()];
const CellClass* neighbors[208];
#pragma omp for nowait
#pragma omp for schedule(dynamic) nowait
for(int idxCell = 0 ; idxCell < numberOfCells ; ++idxCell){
const int counter = tree->getDistantNeighbors(neighbors, iterArray[idxCell].getCurrentGlobalCoordinate(),idxLevel);
if(counter) myThreadkernels->M2L( iterArray[idxCell].getCurrentCell() , neighbors, counter, idxLevel);
......
......@@ -228,7 +228,7 @@ public:
KernelClass * const myThreadkernels = kernels[omp_get_thread_num()];
const CellClass* neighbors[208];
#pragma omp for nowait
#pragma omp for schedule(dynamic) nowait
for(int idxCell = 0 ; idxCell < numberOfCells ; ++idxCell){
CellClass* const currentCell = iterArray[idxCell].getCurrentCell();
if(currentCell->hasTargetsChild()){
......
......@@ -209,7 +209,7 @@ public:
KernelClass * const myThreadkernels = kernels[omp_get_thread_num()];
CellClass* neighbors[208];
#pragma omp for nowait
#pragma omp for schedule(dynamic) nowait
for(int idxCell = 0 ; idxCell < numberOfCells ; ++idxCell){
const int counter = tree->getDistantNeighbors(neighbors, iterArray[idxCell].getCurrentGlobalCoordinate(),idxLevel);
if(counter) myThreadkernels->M2L( iterArray[idxCell].getCurrentCell() , neighbors, counter, 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