diff options
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index 9e56e0878..da68b3162 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -356,9 +356,7 @@ namespace Carpet { { cpu_set_t cpumask; CPU_ZERO(&cpumask); - for (int i=0; i<mynthreads; ++i) { - CPU_SET(n0 + i, &cpumask); - } + CPU_SET(n0 + omp_get_thread_num(), &cpumask); int const ierr = sched_setaffinity(0, sizeof(cpumask), &cpumask); assert (not ierr); } |