Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEEvaluationBase::read_write_operation case 3: enable masking #14085

Merged
merged 1 commit into from
Jul 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions include/deal.II/matrix_free/fe_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3342,13 +3342,14 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
// Case 3: standard operation with one index per degree of freedom -> go on
// here
constexpr unsigned int n_lanes = VectorizedArrayType::size();
Assert(mask.count() == n_lanes,
ExcNotImplemented("Masking currently not implemented for "
"non-contiguous DoF storage"));

const std::array<unsigned int, VectorizedArrayType::size()> &cells =
std::array<unsigned int, VectorizedArrayType::size()> cells =
this->get_cell_ids();

for (unsigned int v = 0; v < n_lanes; ++v)
if (mask[v] == false)
cells[v] = numbers::invalid_unsigned_int;

bool has_hn_constraints = false;

if (is_face == false)
Expand Down