Skip to content
Snippets Groups Projects
Commit 510ba462 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[Mesh] use any_of in hasNonlinearElement()

parent 67bcfa23
No related branches found
No related tags found
No related merge requests found
...@@ -280,13 +280,10 @@ void Mesh::checkNonlinearNodeIDs() const ...@@ -280,13 +280,10 @@ void Mesh::checkNonlinearNodeIDs() const
bool Mesh::hasNonlinearElement() const bool Mesh::hasNonlinearElement() const
{ {
for (auto* const e : _elements) return std::any_of(std::begin(_elements), std::end(_elements),
{ [](Element const* const e) {
if (e->getNumberOfNodes() == e->getNumberOfBaseNodes()) return e->getNumberOfNodes() != e->getNumberOfBaseNodes();
continue; });
return true;
}
return false;
} }
void scaleMeshPropertyVector(MeshLib::Mesh & mesh, void scaleMeshPropertyVector(MeshLib::Mesh & mesh,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment