3 #ifndef DUNE_ALU2DGRIDDATAHANDLE_HH 4 #define DUNE_ALU2DGRIDDATAHANDLE_HH 26 template<
class Gr
idType,
class AdaptDataHandle >
28 :
public AdaptRestrictProlong2d
ALU2DDIMWORLD( GridType::dimensionworld, GridType::elementType )
35 EntityType & reFather_;
37 RealEntityType & realFather_;
38 RealEntityType & realSon_;
48 EntityType &f, RealEntityType &rf,
49 EntityType &s, RealEntityType &rs,
66 maxlevel_ =
std::max( maxlevel_, father.level() );
68 realFather_.setElement( father );
69 rp_.preCoarsening( reFather_ );
77 maxlevel_ =
std::max( maxlevel_, father.level()+1 );
79 realFather_.setElement( father );
80 rp_.postRefinement( reFather_ );
90 #endif // #ifndef DUNE_ALU2DGRIDDATAHANDLE_HH Definition: objectfactory.hh:23
#define ALU2DDIMWORLD(dimw, eltype)
Definition: alu2dinclude.hh:37
int postRefinement(HElementType &father)
prolong data, elem is the father
Definition: alugrid/2d/datahandle.hh:75
int maxLevel() const
Definition: alugrid/2d/datahandle.hh:85
Definition: alu2dinclude.hh:52
int max(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:335
AdaptRestrictProlong2dImpl(GridType &grid, EntityType &f, RealEntityType &rf, EntityType &s, RealEntityType &rs, AdaptDataHandle &rp)
Constructor.
Definition: alugrid/2d/datahandle.hh:47
HmeshType::helement_t HElementType
Definition: alu2dinclude.hh:108
interfaces and wrappers needed for the callback adaptation provided by AlbertaGrid and ALUGrid ...
int preCoarsening(HElementType &father)
restrict data , elem is always the father
Definition: alugrid/2d/datahandle.hh:64
virtual ~AdaptRestrictProlong2dImpl()
Definition: alugrid/2d/datahandle.hh:60
Definition: alugrid/2d/datahandle.hh:27
InterfaceType::Implementation ImplementationType
Definition: common/grid.hh:1468