From d41d93f480b68bf4634e3bbe99547f9dfce01492 Mon Sep 17 00:00:00 2001 From: Dragan Nikolic Date: Wed, 14 Sep 2016 06:32:55 -0600 Subject: [PATCH] Generalize code for cases where 'Number' is a more complicated scalar. --- include/deal.II/lac/vector.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.5