3 #ifndef DUNE_ADAPTCALLBACK_HH
4 #define DUNE_ADAPTCALLBACK_HH
18 template<
class Gr
id,
class Impl >
19 class AdaptDataHandle;
26 template<
class Gr
id,
class Impl >
34 typedef typename Grid::template Codim< 0 >::Entity
Entity;
41 This &operator= (
const This & );
44 void preAdapt (
const unsigned int estimateAdditionalElements )
46 asImp().preAdapt( estimateAdditionalElements );
56 asImp().preCoarsening( father );
61 asImp().postRefinement( father );
66 asImp().restrictLocal( father, son, initialize );
71 asImp().prolongLocal( father, son, initialize );
77 return static_cast< const Impl &
>( *this );
82 return static_cast< Impl &
>( *this );
91 template<
class Gr
id,
class Impl >
107 This &operator= (
const This & );
109 void preAdapt (
const unsigned int estimateAdditionalElements );
111 void preCoarsening (
const Entity &father )
const;
112 void postRefinement (
const Entity &father )
const;
120 template <
class A,
class B >
132 template <
class EntityType>
133 void restrictLocal ( EntityType &father, EntityType &son,
bool initialize )
const
135 _a.restrictLocal(father,son,initialize);
136 _b.restrictLocal(father,son,initialize);
140 template <
class EntityType>
141 void prolongLocal ( EntityType &father, EntityType &son,
bool initialize )
const
143 _a.prolongLocal(father,son,initialize);
144 _b.prolongLocal(father,son,initialize);