diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:13:15 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:13:15 -0400 |
commit | 62d962f1a5140c37b494ab08174d1d5f42a52e8a (patch) | |
tree | 268d39e640bdc7a9ee745f90288ecc5377a914a5 /Carpet/CarpetLib | |
parent | c26ba5c83e55a782c6f3e277f5845f20fd47aa10 (diff) |
CarpetLib: Correct vect::count
Diffstat (limited to 'Carpet/CarpetLib')
-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. */ |