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>
48template <
class TypeTag>
62 : simulator_(simulator)
71 {
return *gridView_; }
97 return FemDofManager::instance(asImp_().grid()).sequence();
110 asImp_().grid().loadBalance();
119 if(&asImp_() !=
this) {
132 void updateGridView_()
135 if constexpr (std::is_same_v<GridView,
139 gridPart_ = std::make_unique<GridPart>(asImp_().grid());
140 gridView_ = std::make_unique<GridView>(
static_cast<GridView
>(*
gridPart_));
145 gridView_ = std::make_unique<GridView>(asImp_().grid().
leafGridView());
150 Implementation& asImp_()
151 {
return *
static_cast<Implementation*
>(
this); }
153 const Implementation& asImp_()
const
154 {
return *
static_cast<const Implementation*
>(
this); }
156 Simulator& simulator_;
160 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:50
void addLgrs()
Add LGRs to the grid, if any.
Definition basevanguard.hh:117
int gridSequenceNumber() const
Returns the number of times the grid has been changed since its creation.
Definition basevanguard.hh:93
const GridView & gridView() const
Returns a reference to the grid view to be used.
Definition basevanguard.hh:70
void loadBalance()
Distribute the grid (and attached data) over all processes.
Definition basevanguard.hh:108
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
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:233
This file provides the infrastructure to retrieve run-time parameters.