From: Martin Kronbichler Date: Wed, 1 Jan 2025 13:06:09 +0000 (+0100) Subject: FEEvaluation: Only get shared vector data if we have DoFInfo X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0aa109f4784b4a0fcc25eeb59cff7bb28a77cc83;p=dealii.git FEEvaluation: Only get shared vector data if we have DoFInfo --- 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);