Skip to content

Commit

Permalink
Merge pull request #15859 from kronbichler/simplify
Browse files Browse the repository at this point in the history
MatrixFree fast hanging node constraints: simplify a check
  • Loading branch information
peterrum committed Aug 8, 2023
2 parents c9a102c + bd20aa4 commit a085042
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions include/deal.II/matrix_free/hanging_nodes_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -872,13 +872,11 @@ namespace internal
const auto supported_components = compute_supported_components(
cell->get_dof_handler().get_fe_collection());

if ([](const auto &supported_components) {
return std::none_of(supported_components.begin(),
supported_components.end(),
[](const auto &a) {
return *std::max_element(a.begin(), a.end());
});
}(supported_components))
if (std::none_of(supported_components.begin(),
supported_components.end(),
[](const auto &a) {
return *std::max_element(a.begin(), a.end());
}))
return false;

// 2) determine the refinement configuration of the cell
Expand Down

0 comments on commit a085042

Please sign in to comment.