diff --git a/NumLib/DOF/LocalToGlobalIndexMap.cpp b/NumLib/DOF/LocalToGlobalIndexMap.cpp index ca08f54519dca2631d01b0744dff90f319d48df3..6e38c48ab4c9cd1806634624ff159ab33fdbad22 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)