gridhelpers.hh
Go to the documentation of this file.
1/*
2 Copyright 2015 IRIS AS
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef DUNE_POLYHEDRALGRID_GRIDHELPERS_HEADER_INCLUDED
20#define DUNE_POLYHEDRALGRID_GRIDHELPERS_HEADER_INCLUDED
21
24
25namespace Opm
26{
27namespace UgGridHelpers
28{
29
30template<int dim, int dimworld>
31struct CellCentroidTraits< Dune::PolyhedralGrid< dim, dimworld > >
32 : public CellCentroidTraits<UnstructuredGrid>
33{
34};
35
36template<int dim, int dimworld>
37struct CellVolumeIteratorTraits< Dune::PolyhedralGrid< dim, dimworld > >
38 : public CellVolumeIteratorTraits<UnstructuredGrid>
39{
40};
41
42template<int dim, int dimworld>
43struct FaceCentroidTraits< Dune::PolyhedralGrid< dim, dimworld > >
44 : public FaceCentroidTraits< UnstructuredGrid >
45{
46};
47
48template<int dim, int dimworld>
49struct Cell2FacesTraits< Dune::PolyhedralGrid< dim, dimworld > >
50 : public Cell2FacesTraits<UnstructuredGrid>
51{
52};
53
54template<int dim, int dimworld>
55struct Face2VerticesTraits< Dune::PolyhedralGrid< dim, dimworld > >
56 : public Face2VerticesTraits<UnstructuredGrid>
57{
58};
59
60template<int dim, int dimworld>
61struct FaceCellTraits< Dune::PolyhedralGrid< dim, dimworld > >
62 : public FaceCellTraits<UnstructuredGrid>
63{
64};
65
66} // end namespace UGGridHelpers
67} // end namespace OPM
68#endif
The namespace Dune is the main namespace for all Dune code.
Definition: common/CartesianIndexMapper.hpp:10
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:26
Maps the grid type to the associated type of the cell to faces mapping.
Definition: GridHelpers.hpp:280
Traits of the cell centroids of a grid.
Definition: GridHelpers.hpp:129
The mapping of the grid type to type of the iterator over the cell volumes.
Definition: GridHelpers.hpp:194
Maps the grid type to the associated type of the face to vertices mapping.
Definition: GridHelpers.hpp:295
Traits of the face to attached cell mappping of a grid.
Definition: GridHelpers.hpp:337
Traits of the face centroids of a grid.
Definition: GridHelpers.hpp:244