From: Peter Munch Date: Thu, 12 May 2022 19:12:21 +0000 (+0200) Subject: MF: fix if all cells of a process are FE_Nothing X-Git-Tag: v9.4.0-rc1~228^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13725%2Fhead;p=dealii.git MF: fix if all cells of a process are FE_Nothing --- diff --git a/source/matrix_free/dof_info.cc b/source/matrix_free/dof_info.cc index c1098500c2..517dc7d479 100644 --- a/source/matrix_free/dof_info.cc +++ b/source/matrix_free/dof_info.cc @@ -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)