From 0aa109f4784b4a0fcc25eeb59cff7bb28a77cc83 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 1 Jan 2025 14:06:09 +0100 Subject: [PATCH] FEEvaluation: Only get shared vector data if we have DoFInfo --- include/deal.II/matrix_free/fe_evaluation.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index cf66cd821b..1906253ca5 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -3912,8 +3912,9 @@ FEEvaluationBase:: const auto src_data = internal::get_vector_data( src, first_index, - this->dof_access_index == - internal::MatrixFreeFunctions::DoFInfo::dof_access_cell, + this->dof_info != nullptr && + this->dof_access_index == + internal::MatrixFreeFunctions::DoFInfo::dof_access_cell, this->active_fe_index, this->dof_info); -- 2.39.5