aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-05-26 16:13:15 -0400
committerErik Schnetter <schnetter@gmail.com>2013-05-26 16:13:15 -0400
commit62d962f1a5140c37b494ab08174d1d5f42a52e8a (patch)
tree268d39e640bdc7a9ee745f90288ecc5377a914a5 /Carpet/CarpetLib
parentc26ba5c83e55a782c6f3e277f5845f20fd47aa10 (diff)
CarpetLib: Correct vect::count
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/vect.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index dfe2ab7f8..af27f3094 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -456,7 +456,7 @@ DECLARE_REDUCTION_OPERATOR_2 (hypot,0,+=,*,sqrt)
template<typename T,int D>
inline int count (const vect<T,D>& a)
{
- return sum(a != T(0));
+ return sum(ivect(a != T(0)));
}
/** Return the size (number of elements) of the vector. */