File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ class BlockPartition
183183 {
184184 KRATOS_PREPARE_CATCH_THREAD_EXCEPTION
185185
186- #pragma omp parallel for
186+ #pragma omp parallel for schedule(dynamic)
187187 for (int i=0 ; i<mNchunks ; ++i) {
188188 KRATOS_TRY
189189 for (auto it = mBlockPartition [i]; it != mBlockPartition [i+1 ]; ++it) {
@@ -206,7 +206,7 @@ class BlockPartition
206206 KRATOS_PREPARE_CATCH_THREAD_EXCEPTION
207207
208208 TReducer global_reducer;
209- #pragma omp parallel for
209+ #pragma omp parallel for schedule(dynamic)
210210 for (int i=0 ; i<mNchunks ; ++i) {
211211 KRATOS_TRY
212212 TReducer local_reducer;
@@ -519,7 +519,7 @@ class IndexPartition
519519 {
520520 KRATOS_PREPARE_CATCH_THREAD_EXCEPTION
521521
522- #pragma omp parallel for
522+ #pragma omp parallel for schedule(dynamic)
523523 for (int i=0 ; i<mNchunks ; ++i) {
524524 KRATOS_TRY
525525 for (auto k = mBlockPartition [i]; k < mBlockPartition [i+1 ]; ++k) {
@@ -541,7 +541,7 @@ class IndexPartition
541541 KRATOS_PREPARE_CATCH_THREAD_EXCEPTION
542542
543543 TReducer global_reducer;
544- #pragma omp parallel for
544+ #pragma omp parallel for schedule(dynamic)
545545 for (int i=0 ; i<mNchunks ; ++i) {
546546 KRATOS_TRY
547547 TReducer local_reducer;
You can’t perform that action at this time.
0 commit comments