dune-grid
2.6-git
|
#include <dune/grid/common/geometry.hh>
Classes | |
class | ReturnImplementationType |
Helper class to choose correct implementation return type for getRealImplementation. More... | |
class | ReturnImplementationType< const T > |
Public Types | |
typedef GridFamily::Traits | Traits |
The traits of this class. More... | |
Public Member Functions | |
Traits::LevelGridView | levelGridView (int level) const |
View for a grid level for All_Partition. More... | |
Traits::LeafGridView | leafGridView () const |
View for the leaf grid for All_Partition. More... | |
bool | mark (int refCount, const typename Traits ::template Codim< 0 >::Entity &e) |
Marks an entity to be refined/coarsened in a subsequent adapt. More... | |
int | getMark (const typename Traits::template Codim< 0 >::Entity &e) const |
returns adaptation mark for given entity, i.e. here the default implementation returns 0. More... | |
bool | adapt () |
Refine all positive marked leaf entities coarsen all negative marked entities if possible. More... | |
bool | preAdapt () |
returns true, if at least one entity is marked for adaption More... | |
void | postAdapt () |
clean up some markers More... | |
bool | loadBalance () |
default implementation of load balance does nothing and returns false More... | |
template<class DataHandle > | |
bool | loadBalance (DataHandle &data) |
default implementation of load balance does nothing and returns false More... | |
Static Protected Member Functions | |
template<class InterfaceType > | |
static std::conditional< std::is_reference< InterfaceType >::value, typename std::add_lvalue_reference< typename ReturnImplementationType< typename std::remove_reference< InterfaceType >::type >::ImplementationType >::type, typename std::remove_const< typename ReturnImplementationType< typename std::remove_reference< InterfaceType >::type >::ImplementationType >::type >::type | getRealImplementation (InterfaceType &&i) |
return real implementation of interface class More... | |
A Grid is a container of grid entities. Given a dimension dim these entities have a codimension codim with 0 <= codim <= dim.
The Grid is assumed to be hierachically refined and nested. It enables iteration over entities of a given level and codimension.
The grid can be non-matching.
All information is provided to allocate degrees of freedom in appropriate vector data structures (which are not part of this module).
Template class Grid defines a "base class" for all grids.
typedef GridFamily::Traits Dune::GridDefaultImplementation< dim, dimworld, ct, GridFamily >::Traits |
The traits of this class.
Presents the typedefs as described in GridTraits.
|
inline |
Refine all positive marked leaf entities coarsen all negative marked entities if possible.
|
inline |
returns adaptation mark for given entity, i.e. here the default implementation returns 0.
[in] | e | Entity for which adaptation mark should be determined |
|
inlinestaticprotected |
return real implementation of interface class
|
inline |
View for the leaf grid for All_Partition.
|
inline |
View for a grid level for All_Partition.
|
inline |
default implementation of load balance does nothing and returns false
|
inline |
default implementation of load balance does nothing and returns false
|
inline |
Marks an entity to be refined/coarsened in a subsequent adapt.
[in] | refCount | Number of subdivisions that should be applied. Negative value means coarsening. |
[in] | e | Entity to Entity that should be refined |
|
inline |
clean up some markers
|
inline |
returns true, if at least one entity is marked for adaption