mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 02:30:18 -06:00
GridHelpers: added specialization for PolyhedralGrid.
This commit is contained in:
parent
5be3ae9ad6
commit
752f80572e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user