]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Generalize code for cases where 'Number' is a more complicated scalar.
authorDragan Nikolic <dragnikolic@gmail.com>
Wed, 14 Sep 2016 12:32:55 +0000 (06:32 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Sep 2016 12:32:55 +0000 (06:32 -0600)
include/deal.II/lac/vector.templates.h

index ce2a2287fc7c82b844f28ebcb20b12ec77c3b0ab..7ec0cd768e1fa095715d1dcd66980c84ff56485f 100644 (file)
@@ -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<Number>::reinit (const size_type n,
     }
 
   if (omit_zeroing_entries == false)
-    *this = static_cast<Number>(0);
+    *this = Number(0);
 }
 
 
@@ -332,7 +332,7 @@ void Vector<Number>::reinit (const Vector<Number2> &v,
     };
   vec_size = v.vec_size;
   if (omit_zeroing_entries == false)
-    *this = static_cast<Number>(0);
+    *this = Number(0);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.