aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/SetupGH.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-03-16 21:20:35 -0400
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:11 +0100
commit7f55fb4bd66291488ba862da1261e65b3ed659a8 (patch)
treefbd2b184635ebadb4c45108bd3f91144196e212e /Carpet/Carpet/src/SetupGH.cc
parent3478a8f8f27375aca408729e8f8005711da09206 (diff)
Carpet: Don't use CPU_COUNT
Diffstat (limited to 'Carpet/Carpet/src/SetupGH.cc')
-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;