Skip to content

Commit

Permalink
Fix FEEvaluation::gather_evaluate() for user-defined batches
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrum committed May 7, 2022
1 parent 9fe9ba2 commit c565b19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/deal.II/matrix_free/fe_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7269,6 +7269,10 @@ namespace internal
VectorizedArrayType *
check_vector_access_inplace(const EvaluatorType &fe_eval, VectorType &vector)
{
// for user-defined macro cells 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();

Expand Down

0 comments on commit c565b19

Please sign in to comment.