From 8802ef67a01ff192dd34bb2ca44077ebe2c4d078 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 12 May 2022 21:12:21 +0200 Subject: [PATCH] MF: fix if all cells of a process are FE_Nothing --- source/matrix_free/dof_info.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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) -- 2.39.5