aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/SetupGH.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-04-30 13:53:49 -0400
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:17 +0100
commitb6e291b56d6b711579971e978802d3f7ff51866e (patch)
treea0b3456f35140bc54922079cf5aaab5281307292 /Carpet/Carpet/src/SetupGH.cc
parentbeac0327f5a70394694f6365a999b50373ed1de9 (diff)
Carpet: Correct setting core affinity
Correct upper loop bound
Diffstat (limited to 'Carpet/Carpet/src/SetupGH.cc')
-rw-r--r--Carpet/Carpet/src/SetupGH.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 0b1981225..7fabac895 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -403,7 +403,7 @@ namespace Carpet {
if (p == myproc) break;
skip_cores += mynthreads;
}
- for (int n=0; n<mynthreads; ++n) {
+ for (int n=0; n<CPU_SETSIZE; ++n) {
if (skip_cores == 0) break;
if (mask.at(n)) {
-- skip_cores;
@@ -413,7 +413,7 @@ namespace Carpet {
}
// Choose cores for this process
int n0 = -1;
- for (int n=0; n<mynthreads; ++n) {
+ for (int n=0; n<CPU_SETSIZE; ++n) {
if (mask.at(n)) {
n0 = n;
break;