diff --git a/NumLib/DOF/LocalToGlobalIndexMap.cpp b/NumLib/DOF/LocalToGlobalIndexMap.cpp index 8aa12a72be0d1ab853ba2bb23c322b03f90fcd2c..21fdc1c5d607640376a12d1181e25d3818ebdae3 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.cpp +++ b/NumLib/DOF/LocalToGlobalIndexMap.cpp @@ -194,33 +194,6 @@ LocalToGlobalIndexMap::LocalToGlobalIndexMap( } } - -LocalToGlobalIndexMap::LocalToGlobalIndexMap( - std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, - int const component_id, - std::vector<MeshLib::Element*> const& elements, - NumLib::MeshComponentMap&& mesh_component_map) - : _mesh_subsets(std::move(mesh_subsets)), - _mesh_component_map(std::move(mesh_component_map)), - _variable_component_offsets(to_cumulative(std::vector<unsigned>(1,1))) // Single variable only. -{ - // There is only one mesh_subsets in the vector _mesh_subsets. - assert(_mesh_subsets.size() == 1); - auto const mss = *_mesh_subsets.front(); - - // For all MeshSubset in mesh_subsets and each element of that MeshSubset - // save a line of global indices. - for (MeshLib::MeshSubset const* const ms : mss) - { - std::size_t const mesh_id = ms->getMeshID(); - - findGlobalIndices(elements.cbegin(), elements.cend(), ms->getNodes(), mesh_id, - component_id, 0); // There is only one component to - // write out, therefore the zero - // parameter. - } -} - LocalToGlobalIndexMap::LocalToGlobalIndexMap( std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, std::vector<std::size_t> const& global_component_ids, diff --git a/NumLib/DOF/LocalToGlobalIndexMap.h b/NumLib/DOF/LocalToGlobalIndexMap.h index b304aae68416e137c7e2c0917ccdcb7c3770e159..460d7b73a41e0e373adefd98ddaf91b4627bb266 100644 --- a/NumLib/DOF/LocalToGlobalIndexMap.h +++ b/NumLib/DOF/LocalToGlobalIndexMap.h @@ -163,17 +163,6 @@ public: } private: - /// Private constructor used by internally created local-to-global index - /// maps. The mesh_component_map is passed as argument instead of being - /// created by the constructor. - /// \attention The passed mesh_component_map is in undefined state after - /// this construtor. - explicit LocalToGlobalIndexMap( - std::vector<std::unique_ptr<MeshLib::MeshSubsets>>&& mesh_subsets, - int const component_id, - std::vector<MeshLib::Element*> const& elements, - NumLib::MeshComponentMap&& mesh_component_map); - /// Private constructor used by internally created local-to-global index /// maps. The mesh_component_map is passed as argument instead of being /// created by the constructor.