Skip to content

Commit

Permalink
Merge pull request #14090 from bergbauer/mask_for_dg
Browse files Browse the repository at this point in the history
FEEvaluationBase::read_write_operation_contiguous enable masking
  • Loading branch information
kronbichler committed Jul 6, 2022
2 parents 204c5e6 + 59f55de commit cfebfb5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions include/deal.II/matrix_free/fe_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3915,13 +3915,17 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::

for (unsigned int v = 0; v < n_filled_lanes; ++v)
{
Assert(cells[v] != numbers::invalid_unsigned_int, ExcNotImplemented());
dof_indices[v] =
dof_indices_cont[cells[v]] +
this->dof_info
->component_dof_indices_offset[this->active_fe_index]
[this->first_selected_component] *
this->dof_info->dof_indices_interleave_strides[ind][cells[v]];
Assert(mask[v] == false || cells[v] != numbers::invalid_unsigned_int,
ExcNotImplemented());
if (mask[v] == true)
dof_indices[v] =
dof_indices_cont[cells[v]] +
this->dof_info
->component_dof_indices_offset[this->active_fe_index]
[this->first_selected_component] *
this->dof_info->dof_indices_interleave_strides[ind][cells[v]];
else
dof_indices[v] = numbers::invalid_unsigned_int;
}

for (unsigned int v = n_filled_lanes; v < VectorizedArrayType::size(); ++v)
Expand Down

0 comments on commit cfebfb5

Please sign in to comment.