Commit c9f0c305 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bugfix for "parallel omp barrier" with intel compiler

parent ef52255e
...@@ -943,6 +943,10 @@ namespace AMDiS { ...@@ -943,6 +943,10 @@ namespace AMDiS {
tmpVector->set(0.0); tmpVector->set(0.0);
} }
// Because we are using the parallel traverse stack, each thread will
// traverse only a part of the mesh.
ElInfo *elInfo = stack.traverseFirst(mesh, -1, assembleFlag);
// After creating privat copies of the DOFMatrix and the DOFVector, all threads // After creating privat copies of the DOFMatrix and the DOFVector, all threads
// have to wait at this barrier. Especially for small problems this is required, // have to wait at this barrier. Especially for small problems this is required,
// because otherwise one thread may be finished with assembling, before another // because otherwise one thread may be finished with assembling, before another
...@@ -950,10 +954,6 @@ namespace AMDiS { ...@@ -950,10 +954,6 @@ namespace AMDiS {
#ifdef _OPENMP #ifdef _OPENMP
#pragma omp barrier #pragma omp barrier
#endif #endif
// Because we are using the parallel traverse stack, each thread will
// traverse only a part of the mesh.
ElInfo *elInfo = stack.traverseFirst(mesh, -1, assembleFlag);
while (elInfo) { while (elInfo) {
if (useGetBound_) { if (useGetBound_) {
basisFcts->getBound(elInfo, bound); basisFcts->getBound(elInfo, bound);
......
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