Loading...
Searching...
No Matches
gridhelpers.hh
/*
Copyright 2015 IRIS AS
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DUNE_POLYHEDRALGRID_GRIDHELPERS_HEADER_INCLUDED
#define DUNE_POLYHEDRALGRID_GRIDHELPERS_HEADER_INCLUDED
#include <opm/grid/GridHelpers.hpp>
#include <opm/grid/polyhedralgrid.hh>
namespace Opm
{
namespace UgGridHelpers
{
template<int dim, int dimworld>
struct CellCentroidTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public CellCentroidTraits<UnstructuredGrid>
{
};
template<int dim, int dimworld>
struct CellVolumeIteratorTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public CellVolumeIteratorTraits<UnstructuredGrid>
{
};
template<int dim, int dimworld>
struct FaceCentroidTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public FaceCentroidTraits< UnstructuredGrid >
{
};
template<int dim, int dimworld>
struct Cell2FacesTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public Cell2FacesTraits<UnstructuredGrid>
{
};
template<int dim, int dimworld>
struct Face2VerticesTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public Face2VerticesTraits<UnstructuredGrid>
{
};
template<int dim, int dimworld>
struct FaceCellTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public FaceCellTraits<UnstructuredGrid>
{
};
} // end namespace UGGridHelpers
} // end namespace OPM
#endif
Dune
The namespace Dune is the main namespace for all Dune code.
Definition CartesianIndexMapper.hpp:10
Opm
Holds the implementation of the CpGrid as a pimple.
Definition CellQuadrature.cpp:68
Opm::UgGridHelpers::Cell2FacesTraits
Maps the grid type to the associated type of the cell to faces mapping.
Definition GridHelpers.hpp:280
Opm::UgGridHelpers::CellCentroidTraits
Traits of the cell centroids of a grid.
Definition GridHelpers.hpp:129
Opm::UgGridHelpers::CellVolumeIteratorTraits
The mapping of the grid type to type of the iterator over the cell volumes.
Definition GridHelpers.hpp:194
Opm::UgGridHelpers::Face2VerticesTraits
Maps the grid type to the associated type of the face to vertices mapping.
Definition GridHelpers.hpp:295
Opm::UgGridHelpers::FaceCellTraits
Traits of the face to attached cell mappping of a grid.
Definition GridHelpers.hpp:337
Opm::UgGridHelpers::FaceCentroidTraits
Traits of the face centroids of a grid.
Definition GridHelpers.hpp:244