Skip to content

Commit

Permalink
Merge pull request #13612 from tjhei/warn_copy_data
Browse files Browse the repository at this point in the history
fix a release mode warning
  • Loading branch information
Rombur committed Apr 13, 2022
2 parents b9ad5f3 + ec59bff commit dda6248
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/deal.II/meshworker/copy_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ namespace MeshWorker
// So we have to be a bit permissive here.
constexpr const int max_index =
std::max(std::max(n_matrices, n_vectors), n_dof_indices);
(void)max_index;
Assert(index < max_index, ExcIndexRange(index, 0, max_index));

if (index < n_matrices)
Expand Down

0 comments on commit dda6248

Please sign in to comment.