mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
GridHelpers: added specialization for PolyhedralGrid.
This commit is contained in:
parent
5be3ae9ad6
commit
752f80572e
@ -35,6 +35,7 @@
|
|||||||
#ifdef HAVE_DUNE_CORNERPOINT
|
#ifdef HAVE_DUNE_CORNERPOINT
|
||||||
#include <dune/grid/CpGrid.hpp>
|
#include <dune/grid/CpGrid.hpp>
|
||||||
#include <dune/grid/cpgrid/GridHelpers.hpp>
|
#include <dune/grid/cpgrid/GridHelpers.hpp>
|
||||||
|
#include <dune/grid/polyhedralgrid.hh>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <opm/core/utility/platform_dependent/reenable_warnings.h>
|
#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;
|
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.
|
/// \brief Get the face to cell mapping of a grid.
|
||||||
ADFaceCellTraits<UnstructuredGrid>::Type
|
ADFaceCellTraits<UnstructuredGrid>::Type
|
||||||
faceCellsToEigen(const UnstructuredGrid& grid);
|
faceCellsToEigen(const UnstructuredGrid& grid);
|
||||||
|
Loading…
Reference in New Issue
Block a user