diff options
author | Roland Haas <rhaas@caltech.edu> | 2012-03-20 08:48:47 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2012-09-11 18:23:12 +0100 |
commit | 95d0971c90c22ad1a020dcd3bc3facee4036e19a (patch) | |
tree | 25c24ae2ba65425c55b9678d9c840f9e51bb21db /Carpet | |
parent | c123446d6994268dec4b6b34801ae3267477649f (diff) |
Carpet: replace omp_get_num_threads() by mynthreads to compile without OpenMP
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index da68b3162..7d1ea18c2 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -356,7 +356,7 @@ namespace Carpet { { cpu_set_t cpumask; CPU_ZERO(&cpumask); - CPU_SET(n0 + omp_get_thread_num(), &cpumask); + CPU_SET(n0 + mynthreads, &cpumask); int const ierr = sched_setaffinity(0, sizeof(cpumask), &cpumask); assert (not ierr); } |