Skip to content
Snippets Groups Projects
Commit e808c077 authored by Neil Vaytet's avatar Neil Vaytet
Browse files

Refs #20443 : added static schedule to omp for loop

parent f917b630
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ join(ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator,
// Initialise ostringstream
std::ostringstream thread_stream;
#pragma omp for
#pragma omp for schedule(static)
for (int i = 0; i < dist; i++) {
// Write to ostringstream
thread_stream << separator << *(begin + i);
......
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