From 62d962f1a5140c37b494ab08174d1d5f42a52e8a Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 26 May 2013 16:13:15 -0400 Subject: CarpetLib: Correct vect::count --- Carpet/CarpetLib/src/vect.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Carpet/CarpetLib') 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 inline int count (const vect& a) { - return sum(a != T(0)); + return sum(ivect(a != T(0))); } /** Return the size (number of elements) of the vector. */ -- cgit v1.2.3