Dune Core Modules (2.9.0)

mcmgmappertest.cc File Reference

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>
#include <dune/grid/uggrid.hh>
#include "../../../../doc/grids/gridfactory/hybridtestgrids.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()

◆ checkMixedDataMapper()

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.

Note
Tests the multiple indices per entity interface (types/indices) specific to the MCMGMapper

References Dune::Mapper< G, MapperImp, IndexType >::contains(), Dune::GridView< ViewTraits >::dimension, DUNE_THROW, Dune::GridView< ViewTraits >::indexSet(), Dune::Simd::Overloads::max(), Dune::Simd::Overloads::min(), Dune::Mapper< G, MapperImp, IndexType >::size(), Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp, TypesImp >::size(), and Dune::Mapper< G, MapperImp, IndexType >::subIndex().

Referenced by checkGrid().

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 18, 22:30, 2024)