From: Dragan Nikolic Date: Wed, 14 Sep 2016 12:32:55 +0000 (-0600) Subject: Generalize code for cases where 'Number' is a more complicated scalar. X-Git-Tag: v8.5.0-rc1~672^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d41d93f480b68bf4634e3bbe99547f9dfce01492;p=dealii.git Generalize code for cases where 'Number' is a more complicated scalar. --- diff --git a/include/deal.II/lac/vector.templates.h b/include/deal.II/lac/vector.templates.h index ce2a2287fc..7ec0cd768e 100644 --- a/include/deal.II/lac/vector.templates.h +++ b/include/deal.II/lac/vector.templates.h @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 1999 - 2015 by the deal.II authors +// Copyright (C) 1999 - 2016 by the deal.II authors // // This file is part of the deal.II library. // @@ -304,7 +304,7 @@ void Vector::reinit (const size_type n, } if (omit_zeroing_entries == false) - *this = static_cast(0); + *this = Number(0); } @@ -332,7 +332,7 @@ void Vector::reinit (const Vector &v, }; vec_size = v.vec_size; if (omit_zeroing_entries == false) - *this = static_cast(0); + *this = Number(0); }