GridHelpers: added specialization for PolyhedralGrid.

This commit is contained in:
Robert Kloefkorn 2015-07-10 14:15:54 +02:00
parent 5be3ae9ad6
commit 752f80572e

View File

@ -35,6 +35,7 @@
#ifdef HAVE_DUNE_CORNERPOINT
#include <dune/grid/CpGrid.hpp>
#include <dune/grid/cpgrid/GridHelpers.hpp>
#include <dune/grid/polyhedralgrid.hh>
#endif
#include <opm/core/utility/platform_dependent/reenable_warnings.h>
@ -142,6 +143,16 @@ struct ADFaceCellTraits<UnstructuredGrid>
typedef Eigen::Array<int, Eigen::Dynamic, 2, Eigen::RowMajor> Type;
};
#ifdef HAVE_DUNE_CORNERPOINT
// specialization for PolyhedralGrid as a fallback to UnstructuredGrid
template< int dim, int dimworld >
struct ADFaceCellTraits< Dune::PolyhedralGrid< dim, dimworld > >
: public ADFaceCellTraits<UnstructuredGrid>
{
};
#endif
/// \brief Get the face to cell mapping of a grid.
ADFaceCellTraits<UnstructuredGrid>::Type
faceCellsToEigen(const UnstructuredGrid& grid);