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

[NL] Add multicomponents to LocalToGlobalIndexMap.

parent d9cfcb3d
No related branches found
No related tags found
No related merge requests found
......@@ -302,8 +302,7 @@ LocalToGlobalIndexMap* LocalToGlobalIndexMap::deriveBoundaryConstrainedMap(
// The last component is moved after the for-loop.
std::vector<std::unique_ptr<MeshLib::MeshSubsets>> all_mesh_subsets;
for (std::size_t i = 0; i < global_component_ids.size() - 1; ++i)
all_mesh_subsets.emplace_back(
new MeshLib::MeshSubsets{*mesh_subsets});
all_mesh_subsets.emplace_back(new MeshLib::MeshSubsets{*mesh_subsets});
all_mesh_subsets.emplace_back(std::move(mesh_subsets));
return new LocalToGlobalIndexMap(std::move(all_mesh_subsets),
......
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