Skip to content

Commit

Permalink
Merge pull request #15673 from tamiko/fix_warning
Browse files Browse the repository at this point in the history
matrix_free/fe_evaluation.h: avoid a warning with g++-13
  • Loading branch information
tamiko committed Jul 7, 2023
2 parents aebed96 + 20eedcb commit 7c7ca6a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/deal.II/matrix_free/fe_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -3917,7 +3917,11 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
}

std::array<unsigned int, n_lanes> dof_indices;
std::fill(dof_indices.begin(),
dof_indices.end(),
numbers::invalid_unsigned_int);

Assert(n_filled_lanes <= n_lanes, ExcInternalError());
for (unsigned int v = 0; v < n_filled_lanes; ++v)
{
Assert(mask[v] == false || cells[v] != numbers::invalid_unsigned_int,
Expand All @@ -3929,13 +3933,8 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
->component_dof_indices_offset[this->active_fe_index]
[this->first_selected_component] *
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 < n_lanes; ++v)
dof_indices[v] = numbers::invalid_unsigned_int;

// In the case with contiguous cell indices, we know that there are no
// constraints and that the indices within each element are contiguous
if (use_vectorized_path)
Expand Down

0 comments on commit 7c7ca6a

Please sign in to comment.