Dune Core Modules (2.8.0)
A unit test for the MultipleCodimMultipleGeometryMapper. More...
#include <config.h>
#include <iostream>
#include <set>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/grid/common/mcmgmapper.hh>
#include <dune/grid/yaspgrid.hh>
#include <dune/grid/utility/structuredgridfactory.hh>
Classes | |
struct | MCMGElementEdgeLayout< dimgrid > |
Layout template for edges and elements This layout template is for use in the MultipleCodimMultipleGeomTypeMapper. It selects edges and elements (entities with dim=1 or dim=dimgrid). More... | |
Functions | |
template<class G , class M , class I , class GridView > | |
void | checkElementDataMapper (const Dune::Mapper< G, M, I > &mapper, const GridView &gridView) |
Check whether the index created for element data is unique, consecutive and starting from zero. | |
template<class G , class M , class I , class GridView > | |
void | checkVertexDataMapper (const Dune::Mapper< G, M, I > &mapper, const GridView &gridView) |
Check whether the index created for vertex data is consecutive and starting from zero. | |
template<class Mapper , class GridView > | |
void | checkMixedDataMapper (const Mapper &mapper, const GridView &gridView) |
Check whether the index created for element and edge data is unique, consecutive and starting from zero. More... | |
template<typename Grid > | |
void | checkGrid (Grid &grid) |
Run checks for a given grid. More... | |
Detailed Description
A unit test for the MultipleCodimMultipleGeometryMapper.
Function Documentation
◆ checkGrid()
Run checks for a given grid.
- Parameters
-
grid Grid to perform the checks.
References checkElementDataMapper(), checkMixedDataMapper(), checkVertexDataMapper(), Dune::Grid< dim, dimworld, ct, GridFamily >::globalRefine(), Dune::FloatCmp::gt(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::levelGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::maxLevel(), Dune::mcmgElementLayout(), and Dune::mcmgVertexLayout().
◆ checkMixedDataMapper()
Check whether the index created for element and edge data is unique, consecutive and starting from zero.
- Note
- Tests the multiple indices per entity interface (types/indices) specific to the MCMGMapper
References Dune::Mapper< G, MapperImp, IndexType >::contains(), DUNE_THROW, Dune::GridView< ViewTraits >::elements(), Dune::GridView< ViewTraits >::indexSet(), Dune::Simd::Overloads::max(), Dune::Simd::Overloads::min(), Dune::Mapper< G, MapperImp, IndexType >::size(), and Dune::Mapper< G, MapperImp, IndexType >::subIndex().
Referenced by checkGrid().