Class template Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>

Inherits from Dune::XT::Common::WithLogger.

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
class Dune::GDT::AdaptationHelper<V, GV, r, rC, RF> : public XT::Common::WithLogger<AdaptationHelper<V, GV, r, rC, RF>>

Manages the persistence and prolongation/restriction of discrete functions and their spaces across grid adaptation (pre_adapt, adapt, post_adapt).

To do

Only depend on the grid type, use type erasure to allow to add arbitrary discrete functions, possibly implement this by element functors which are used in a grid walker.

Method Dune::GDT::AdaptationHelper::append

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
ThisType &Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::append(SpaceType &space, DiscreteFunctionType &discrete_function)

No documentation provided.

Method Dune::GDT::AdaptationHelper::pre_adapt

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
void Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::pre_adapt(const bool pre_adapt_grid = true)

No documentation provided.

Method Dune::GDT::AdaptationHelper::adapt

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
void Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::adapt(const bool adapt_grid = true)

No documentation provided.

Method Dune::GDT::AdaptationHelper::post_adapt

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
void Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::post_adapt(const bool post_adapt_grid = true, const bool clear = false)

No documentation provided.

Constructor Dune::GDT::AdaptationHelper::AdaptationHelper

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
explicit Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::AdaptationHelper(G &grd, const std::string &logging_prefix = "", const std::array<bool, 3> &logging_state = XT::Common::default_logger_state())

No documentation provided.

Field Dune::GDT::AdaptationHelper::grid_

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
G &Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::grid_

No documentation provided.

Field Dune::GDT::AdaptationHelper::data_

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
std::shared_ptr<std::list<std::tuple<XT::Common::StorageProvider<SpaceType>, XT::Common::StorageProvider<DiscreteFunctionType>, PersistentContainer<G, std::pair<DynamicVector<RF>, DynamicVector<RF>>>, std::unique_ptr<typename DiscreteFunctionType::LocalDiscreteFunctionType>>>> Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::data_

No documentation provided.

Type alias Dune::GDT::AdaptationHelper::ThisType

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
using Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::ThisType = AdaptationHelper<V, GV, r, rC, RF>

No documentation provided.

Type alias Dune::GDT::AdaptationHelper::Logger

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
using Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::Logger = XT::Common::WithLogger<AdaptationHelper<V, GV, r, rC, RF>>

No documentation provided.

Type alias Dune::GDT::AdaptationHelper::DiscreteFunctionType

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
using Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::DiscreteFunctionType = DiscreteFunction<V, GV, r, rC, RF>

No documentation provided.

Type alias Dune::GDT::AdaptationHelper::SpaceType

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
using Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::SpaceType = SpaceInterface<GV, r, rC, RF>

No documentation provided.

Type alias Dune::GDT::AdaptationHelper::G

template<class V, class GV, size_t r = 1, size_t rC = 1, class RF = double>
using Dune::GDT::AdaptationHelper<V, GV, r, rC, RF>::G = typename GV::Grid

No documentation provided.