Skip to content
Snippets Groups Projects
Commit 5cc7b455 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL/DS] Remove unnecessary parts after last commit

parent 917d27da
No related branches found
No related tags found
No related merge requests found
......@@ -83,23 +83,6 @@ static std::vector<MeshLib::Node*> extractInnerNodes(
return inner_nodes;
}
template <typename InputIterator, typename UnaryPredicate>
std::vector<std::size_t> copyIdsIf(InputIterator first,
InputIterator last,
UnaryPredicate p)
{
std::vector<std::size_t> ids;
while (first != last)
{
if (p(*first))
{
ids.push_back((*first)->getID());
}
++first;
}
return ids;
}
static std::unique_ptr<DeactivetedSubdomainMesh> createDeactivatedSubdomainMesh(
MeshLib::Mesh const& mesh, int const material_id)
{
......@@ -109,16 +92,6 @@ static std::unique_ptr<DeactivetedSubdomainMesh> createDeactivatedSubdomainMesh(
return material_id == material_ids[e->getID()];
};
auto deactivated_bulk_node_ids = copyIdsIf(
begin(mesh.getNodes()), end(mesh.getNodes()),
[&](MeshLib::Node* const n) {
const auto& connected_elements = n->getElements();
// Check whether this node is in an activated element.
return std::all_of(begin(connected_elements),
end(connected_elements), is_active);
});
auto const& elements = mesh.getElements();
std::vector<MeshLib::Element*> deactivated_elements;
std::copy_if(begin(elements), end(elements),
......
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