From 718a3f6105de17741a3d7e2a3687ccb6a12a0bee Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sat, 7 May 2022 21:17:42 +0200 Subject: [PATCH] Fix FEEvaluation::gather_evaluate() for user-defined batches --- include/deal.II/matrix_free/fe_evaluation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 5c80c2f994..fa8aafadaa 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -7269,6 +7269,10 @@ namespace internal VectorizedArrayType * check_vector_access_inplace(const EvaluatorType &fe_eval, VectorType &vector) { + // for user-defined cell batches this functionality is not supported + if (fe_eval.get_current_cell_index() == numbers::invalid_unsigned_int) + return nullptr; + const unsigned int cell = fe_eval.get_cell_or_face_batch_id(); const auto & dof_info = fe_eval.get_dof_info(); -- 2.39.5