Skip to content
Snippets Groups Projects
Commit 4860c2e7 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/mcmgmapper-array-insteadof-vector' into 'master'

Use std::array instead of std::vector for offset

See merge request !141
parents e5cf8f2f 0ec99e9a
Branches
Tags
1 merge request!141Use std::array instead of std::vector for offset
Pipeline #
......@@ -117,7 +117,6 @@ namespace Dune
MultipleCodimMultipleGeomTypeMapper (const GV& gridView_, const Layout<GV::dimension> layout)
: gridView(gridView_),
is(gridView.indexSet()),
offset(GlobalGeometryTypeIndex::size(GV::dimension)),
layout(layout)
{
update();
......@@ -129,8 +128,7 @@ namespace Dune
*/
MultipleCodimMultipleGeomTypeMapper (const GV& gridView_)
: gridView(gridView_),
is(gridView.indexSet()),
offset(GlobalGeometryTypeIndex::size(GV::dimension))
is(gridView.indexSet())
{
update();
}
......@@ -250,7 +248,7 @@ namespace Dune
const GV gridView;
const typename GV::IndexSet& is;
// provide an array for the offsets
std::vector<int> offset;
std::array<int, GlobalGeometryTypeIndex::size(GV::dimension)> offset;
mutable Layout<GV::dimension> layout; // get layout object
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment