diff --git a/opm/models/io/basevanguard.hh b/opm/models/io/basevanguard.hh index a75f91809d..58f6288ac1 100644 --- a/opm/models/io/basevanguard.hh +++ b/opm/models/io/basevanguard.hh @@ -34,9 +34,10 @@ #if HAVE_DUNE_FEM #include +#include +#include #endif -#include #include namespace Opm { @@ -93,7 +94,7 @@ public: { #if HAVE_DUNE_FEM using FemDofManager = Dune::Fem::DofManager< Grid >; - return FemDofManager::instance( asImp_().grid() ).sequence(); + return FemDofManager::instance(asImp_().grid()).sequence(); #else return 0; // return the same sequence number >= 0 means the grid never changes #endif @@ -133,7 +134,8 @@ protected: #if HAVE_DUNE_FEM if constexpr (std::is_same_v::GridViewType>) { + Properties::GridPart>::GridViewType>) + { gridPart_ = std::make_unique(asImp_().grid()); gridView_ = std::make_unique(static_cast(*gridPart_)); assert(gridView_->size(0) == asImp_().grid().leafGridView().size(0));