]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add assertion regarding array lengths 15217/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 31 May 2023 14:46:36 +0000 (16:46 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 31 May 2023 14:46:36 +0000 (16:46 +0200)
include/deal.II/matrix_free/fe_evaluation_data.h

index e7ec7754d1c1a08bec003126bdc3bf83d6a5711f..20e2fb2ab2321d0fdbc61a52c35784bd1358f154 100644 (file)
@@ -1659,6 +1659,8 @@ namespace internal
                              const VectorOfArrayType &         array,
                              ArrayType &                       out)
   {
+    AssertDimension(indices.size(), out.size());
+    AssertDimension(indices.size(), array[0].size());
     // set all entries in array to a valid element
     int index = 0;
     for (; index < N; ++index)

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.