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

[NL] Clang-format findGlobalIndices.

parent 7992c32f
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,10 @@ std::vector<T> to_cumulative(std::vector<T> const& vec)
} // no named namespace
template <typename ElementIterator>
void
LocalToGlobalIndexMap::findGlobalIndices(
void LocalToGlobalIndexMap::findGlobalIndices(
ElementIterator first, ElementIterator last,
std::vector<MeshLib::Node*> const& nodes,
std::size_t const mesh_id,
std::vector<MeshLib::Node*> const& nodes, std::size_t const mesh_id,
const unsigned comp_id, const unsigned comp_id_write)
{
_rows.resize(std::distance(first, last), _mesh_subsets.size());
......@@ -47,14 +44,15 @@ LocalToGlobalIndexMap::findGlobalIndices(
{
LineIndex indices;
for (auto* n = (*e)->getNodes(); n < (*e)->getNodes()+(*e)->getNumberOfNodes(); ++n)
for (auto* n = (*e)->getNodes();
n < (*e)->getNodes() + (*e)->getNumberOfNodes(); ++n)
{
// Check if the element's node is in the given list of nodes.
if (std::find(std::begin(nodes), std::end(nodes), *n) == std::end(nodes))
if (std::find(std::begin(nodes), std::end(nodes), *n) ==
std::end(nodes))
continue;
MeshLib::Location l(mesh_id,
MeshLib::MeshItemType::Node,
(*n)->getID());
MeshLib::Location l(
mesh_id, MeshLib::MeshItemType::Node, (*n)->getID());
indices.push_back(_mesh_component_map.getGlobalIndex(l, comp_id));
}
......@@ -62,7 +60,6 @@ LocalToGlobalIndexMap::findGlobalIndices(
}
}
LocalToGlobalIndexMap::LocalToGlobalIndexMap(
std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets,
NumLib::ComponentOrder const order)
......
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