Skip to content
Snippets Groups Projects
Commit c9f0c305 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bugfix for "parallel omp barrier" with intel compiler

parent ef52255e
No related branches found
No related tags found
No related merge requests found
......@@ -943,6 +943,10 @@ namespace AMDiS {
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
// have to wait at this barrier. Especially for small problems this is required,
// because otherwise one thread may be finished with assembling, before another
......@@ -950,10 +954,6 @@ namespace AMDiS {
#ifdef _OPENMP
#pragma omp barrier
#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) {
if (useGetBound_) {
basisFcts->getBound(elInfo, bound);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment