From 491ef90ba40c00454b34f4176b4812ad71202138 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Sat, 1 Oct 2016 21:55:40 +0200 Subject: [PATCH] [NL] Clang-format findGlobalIndices. --- NumLib/DOF/LocalToGlobalIndexMap.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/NumLib/DOF/LocalToGlobalIndexMap.cpp b/NumLib/DOF/LocalToGlobalIndexMap.cpp index ca08f54519d..6e38c48ab4c 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.cpp +++ b/NumLib/DOF/LocalToGlobalIndexMap.cpp @@ -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) -- GitLab