5#ifndef DUNE_GRID_COMMON_ADAPTCALLBACK_HH
6#define DUNE_GRID_COMMON_ADAPTCALLBACK_HH
20 template<
class Gr
id,
class Impl >
21 class AdaptDataHandle;
31 template<
class Gr
id,
class Impl >
39 typedef typename Grid::template Codim< 0 >::Entity
Entity;
46 This &operator= (
const This & );
56 asImp().preCoarsening( father );
66 asImp().postRefinement( father );
71 asImp().restrictLocal( father, son, initialize );
76 asImp().prolongLocal( father, son, initialize );
80 const Impl &
asImp ()
const {
return static_cast< const Impl &
>( *this ); }
81 Impl &
asImp () {
return static_cast< Impl &
>( *this ); }
89 template<
class Gr
id,
class Impl >
105 This &operator= (
const This & );
107 void preCoarsening (
const Entity &father );
108 void postRefinement (
const Entity &father );
116 template <
class A,
class B >
128 template <
class Entity>
131 _a.restrictLocal(father,son,initialize);
132 _b.restrictLocal(father,son,initialize);
136 template <
class Entity>
139 _a.prolongLocal(father,son,initialize);
140 _b.prolongLocal(father,son,initialize);
Include standard header files.
Definition: agrid.hh:60
Definition: adaptcallback.hh:92
Base::Entity Entity
Definition: adaptcallback.hh:97
AdaptDataHandle()
Definition: adaptcallback.hh:100
Interface class for the Grid's adapt method where the parameter is a AdaptDataHandleInterface.
Definition: adaptcallback.hh:33
void prolongLocal(const Entity &father, const Entity &son, bool initialize)
Definition: adaptcallback.hh:74
void postRefinement(const Entity &father)
call back for activity to take place on newly created elements below the father element.
Definition: adaptcallback.hh:64
Grid::template Codim< 0 >::Entity Entity
Definition: adaptcallback.hh:39
Impl & asImp()
Definition: adaptcallback.hh:81
const Impl & asImp() const
Definition: adaptcallback.hh:80
void restrictLocal(const Entity &father, const Entity &son, bool initialize)
Definition: adaptcallback.hh:69
void preCoarsening(const Entity &father)
call back for activity to take place on father and all descendants before the descendants are removed
Definition: adaptcallback.hh:54
class for combining 2 index sets together for adaptation process
Definition: adaptcallback.hh:118
CombinedAdaptProlongRestrict(A &a, B &b)
constructor storing the two references
Definition: adaptcallback.hh:124
void restrictLocal(const Entity &father, const Entity &son, bool initialize)
restrict data to father
Definition: adaptcallback.hh:129
void prolongLocal(const Entity &father, const Entity &son, bool initialize)
prolong data to children
Definition: adaptcallback.hh:137
Wrapper class for entities.
Definition: common/entity.hh:66
Grid abstract base class.
Definition: common/grid.hh:375