From e808c077d6d863fee26f3e31fe9d4aba0b7dbc1c Mon Sep 17 00:00:00 2001
From: Neil Vaytet <neil.vaytet@esss.se>
Date: Tue, 14 Aug 2018 10:28:40 +0200
Subject: [PATCH] Refs #20443 : added static schedule to omp for loop

---
 Framework/Kernel/inc/MantidKernel/Strings.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/Kernel/inc/MantidKernel/Strings.h b/Framework/Kernel/inc/MantidKernel/Strings.h
index 78a004f13b5..3f6dc001031 100644
--- a/Framework/Kernel/inc/MantidKernel/Strings.h
+++ b/Framework/Kernel/inc/MantidKernel/Strings.h
@@ -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);
-- 
GitLab