aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-03-16 21:20:35 -0400
committerErik Schnetter <schnetter@gmail.com>2012-03-16 21:20:35 -0400
commita6eb7908cafdeec1cd5c5ab4d25097a6c0c0a81c (patch)
tree00e721c18a06797d38ba9bba0a74f4e7c89a42bd
parent9ec754a67361a7d20f4f348747cddc9948fd3783 (diff)
Carpet: Don't use CPU_COUNT
-rw-r--r--Carpet/Carpet/src/SetupGH.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 1afeffe11..efc931215 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -360,10 +360,11 @@ namespace Carpet {
assert (not ierr);
ostringstream buf;
- int const num_cores = CPU_COUNT(&mask);
+ int num_cores = 0;
bool isfirst = true;
int first_active = -1;
for (int n=0; n<CPU_SETSIZE; ++n) {
+ if (CPU_ISSET(n, &mask)) ++num_cores;
if (first_active == -1 and CPU_ISSET(n, &mask)) {
if (not isfirst) buf << ", ";
isfirst = false;