From: Wolfgang Bangerth Date: Tue, 8 May 2018 08:35:32 +0000 (+0800) Subject: Use the appropriate type to state a zero. X-Git-Tag: v9.1.0-rc1~1174^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b9afddba2b781a1bbf93e058471d91e92116935;p=dealii.git Use the appropriate type to state a zero. Specifically, make sure that a statement also compiles if we are working with complex-valued data. --- diff --git a/include/deal.II/matrix_free/matrix_free.h b/include/deal.II/matrix_free/matrix_free.h index ed36ce5772..ef2d78fbc7 100644 --- a/include/deal.II/matrix_free/matrix_free.h +++ b/include/deal.II/matrix_free/matrix_free.h @@ -2759,7 +2759,7 @@ namespace internal LinearAlgebra::distributed::Vector &vec) const { if (range_index == numbers::invalid_unsigned_int) - vec = 0; + vec = Number(); else { const unsigned int mf_component = find_vector_in_mf(vec, false);