1 #ifndef DUNE_ADAPTCALLBACK_HH
2 #define DUNE_ADAPTCALLBACK_HH
16 template<
class Gr
id,
class Impl >
24 template<
class Gr
id,
class Impl >
32 typedef typename Grid::template Codim< 0 >::Entity
Entity;
39 This &operator= (
const This & );
42 void preAdapt (
const unsigned int estimateAdditionalElements )
44 asImp().preAdapt( estimateAdditionalElements );
54 asImp().preCoarsening( father );
59 asImp().postRefinement( father );
64 asImp().restrictLocal( father, son, initialize );
69 asImp().prolongLocal( father, son, initialize );
75 return static_cast< const Impl &
>( *this );
80 return static_cast< Impl &
>( *this );
89 template<
class Gr
id,
class Impl >
91 :
public AdaptDataHandleInterface< Grid, Impl >
94 typedef AdaptDataHandleInterface< Grid, Impl > Base;
105 This &operator= (
const This & );
107 void preAdapt (
const unsigned int estimateAdditionalElements );
109 void preCoarsening (
const Entity &father )
const;
110 void postRefinement (
const Entity &father )
const;
118 template <
class A,
class B >
130 template <
class EntityType>
131 void restrictLocal ( EntityType &father, EntityType &son,
bool initialize )
const
133 _a.restrictLocal(father,son,initialize);
134 _b.restrictLocal(father,son,initialize);
138 template <
class EntityType>
139 void prolongLocal ( EntityType &father, EntityType &son,
bool initialize )
const
141 _a.prolongLocal(father,son,initialize);
142 _b.prolongLocal(father,son,initialize);