]> https://gitweb.dealii.org/ - dealii.git/commitdiff
MF: fix if all cells of a process are FE_Nothing 13725/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 12 May 2022 19:12:21 +0000 (21:12 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 12 May 2022 19:12:21 +0000 (21:12 +0200)
source/matrix_free/dof_info.cc

index c1098500c2b6471c82aafea2d326096cae4d3554..517dc7d47962b1551ce86a60389a01838b1d860e 100644 (file)
@@ -621,10 +621,12 @@ namespace internal
                   for (unsigned int j = 0; j < n_comp; ++j)
                     dof_indices_contiguous
                       [dof_access_cell][i * vectorization_length + j] =
-                        this->dof_indices[row_starts[(i * vectorization_length +
-                                                      j) *
-                                                     n_components]
-                                            .first];
+                        this->dof_indices.size() == 0 ?
+                          0 :
+                          this->dof_indices
+                            [row_starts[(i * vectorization_length + j) *
+                                        n_components]
+                               .first];
                 }
 
               if (indices_are_interleaved_and_contiguous)

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.