Merge pull request #4030 from akva2/avoid_poly_includes

changed: no need to pull in polyhedralgrid if it is not used
This commit is contained in:
Bård Skaflestad 2022-08-26 09:33:19 +02:00 committed by GitHub
commit 42a2b36687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,9 @@
#include <opm/simulators/aquifers/AquiferNumerical.hpp> #include <opm/simulators/aquifers/AquiferNumerical.hpp>
#include <opm/grid/CpGrid.hpp> #include <opm/grid/CpGrid.hpp>
#ifdef USE_POLYHEDRALGRID
#include <opm/grid/polyhedralgrid.hh> #include <opm/grid/polyhedralgrid.hh>
#endif
#if HAVE_DUNE_ALUGRID #if HAVE_DUNE_ALUGRID
#include <dune/alugrid/grid.hh> #include <dune/alugrid/grid.hh>
#endif #endif
@ -62,10 +64,12 @@ class SupportsFaceTag<Dune::CpGrid>
{}; {};
#ifdef USE_POLYHEDRALGRID
template<> template<>
class SupportsFaceTag<Dune::PolyhedralGrid<3, 3>> class SupportsFaceTag<Dune::PolyhedralGrid<3, 3>>
: public std::bool_constant<true> : public std::bool_constant<true>
{}; {};
#endif
#if HAVE_DUNE_ALUGRID #if HAVE_DUNE_ALUGRID
template<> template<>