27#ifndef EWOMS_BASE_VANGUARD_HH
28#define EWOMS_BASE_VANGUARD_HH
33#include <dune/common/version.hh>
36#include <dune/fem/space/common/dofmanager.hh>
47template <
class TypeTag>
61 : simulator_(simulator)
70 {
return *gridView_; }
96 return FemDofManager::instance( asImp_().grid() ).sequence();
109 asImp_().grid().loadBalance();
118 if(&asImp_() !=
this) {
131 void updateGridView_()
134 if constexpr (std::is_same_v<GridView,
137 gridPart_ = std::make_unique<GridPart>(asImp_().grid());
138 gridView_ = std::make_unique<GridView>(
static_cast<GridView
>(*
gridPart_));
143 gridView_ = std::make_unique<GridView>(asImp_().grid().
leafGridView());
148 Implementation& asImp_()
149 {
return *
static_cast<Implementation*
>(
this); }
151 const Implementation& asImp_()
const
152 {
return *
static_cast<const Implementation*
>(
this); }
154 Simulator& simulator_;
158 std::unique_ptr<GridView> gridView_;
Defines a type tags and some fundamental properties all models.
Provides the base class for most (all?) simulator vanguards.
Definition basevanguard.hh:49
void addLgrs()
Add LGRs to the grid, if any.
Definition basevanguard.hh:116
int gridSequenceNumber() const
Returns the number of times the grid has been changed since its creation.
Definition basevanguard.hh:92
const GridView & gridView() const
Returns a reference to the grid view to be used.
Definition basevanguard.hh:69
void loadBalance()
Distribute the grid (and attached data) over all processes.
Definition basevanguard.hh:107
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:235
This file provides the infrastructure to retrieve run-time parameters.