Skip to content
Snippets Groups Projects
Commit fa114acb authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[facet][couplingmapper] use unorderd_map for index map

parent b9b4672b
No related branches found
No related tags found
1 merge request!1545Some fixes for coupling moving meshes.
......@@ -233,12 +233,12 @@ private:
//! Creates the map from element insertion index to grid element index
template< class Embeddings, class FVGridGeometry>
std::map< typename IndexTraits<typename FVGridGeometry::GridView>::GridIndex, typename IndexTraits<typename FVGridGeometry::GridView>::GridIndex >
std::unordered_map< typename IndexTraits<typename FVGridGeometry::GridView>::GridIndex, typename IndexTraits<typename FVGridGeometry::GridView>::GridIndex >
makeInsertionToGridIndexMap_(std::shared_ptr<const Embeddings> embeddings, const FVGridGeometry& fvGridGeometry) const
{
using GridIndexType = typename IndexTraits<typename FVGridGeometry::GridView>::GridIndex;
std::map< GridIndexType, GridIndexType > map;
std::unordered_map< GridIndexType, GridIndexType > map;
for (const auto& e : elements(fvGridGeometry.gridView()))
map.insert( std::make_pair( embeddings->template insertionIndex<bulkId>(e), fvGridGeometry.elementMapper().index(e) ) );
......
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