]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update include/deal.II/matrix_free/evaluation_kernels.h 14850/head
authorBuğrahan Temür <bugrahan.temur@gmail.com>
Thu, 16 Mar 2023 07:52:08 +0000 (08:52 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Mar 2023 07:52:08 +0000 (08:52 +0100)
initalization of array of VectorizedArray

Co-authored-by: Peter Munch <peterrmuench@gmail.com>
include/deal.II/matrix_free/evaluation_kernels.h

index b0145fa8e472d85664d708c4cc66c930746b8ff2..5406d1900821563cd4a359fe277d6f29494e37ca 100644 (file)
@@ -5833,7 +5833,7 @@ namespace internal
       const unsigned int n_desired_components =
         (n_components > -1) ? n_components : n_given_components;
 
-      std::array<Number, dim + 2> tmp;
+      std::array<Number, dim + 2> tmp = {};
       Assert(n_desired_components <= dim + 2,
              ExcMessage(
                "Number of components larger than dim+2 not supported."));

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.