diff options
-rw-r--r-- | Carpet/CarpetLib/src/vect.hh | 2 |
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. */ |