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 )
37 RealEntityType & realFather_;
38 RealEntityType & realSon_;
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
int max(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:335
HmeshType::helement_t HElementType
Definition: alu2dinclude.hh:108
Definition: objectfactory.hh:23
AdaptRestrictProlong2dImpl(GridType &grid, EntityType &f, RealEntityType &rf, EntityType &s, RealEntityType &rs, AdaptDataHandle &rp)
Constructor.
Definition: alugrid/2d/datahandle.hh:47
interfaces and wrappers needed for the callback adaptation provided by AlbertaGrid and ALUGrid ...
int postRefinement(HElementType &father)
prolong data, elem is the father
Definition: alugrid/2d/datahandle.hh:75
#define ALU2DSPACENAME
Definition: alu2dinclude.hh:36
InterfaceType::Implementation ImplementationType
Definition: common/grid.hh:1468
Definition: alugrid/2d/datahandle.hh:27
int preCoarsening(HElementType &father)
restrict data , elem is always the father
Definition: alugrid/2d/datahandle.hh:64
int maxLevel() const
Definition: alugrid/2d/datahandle.hh:85
#define ALU2DDIMWORLD(dimw, eltype)
Definition: alu2dinclude.hh:37
virtual ~AdaptRestrictProlong2dImpl()
Definition: alugrid/2d/datahandle.hh:60