dune-grid  2.4.1
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::IdentityGrid< HostGrid > Singleton Reference

Provides a meta grid that is identical to its host. More...

#include <dune/grid/identitygrid.hh>

Inheritance diagram for Dune::IdentityGrid< HostGrid >:
Inheritance graph

Public Types

typedef HostGrid HostGridType
 
typedef IdentityGridFamily
< HostGrid::dimension,
HostGrid > 
GridFamily
 type of the used GridFamily for this grid More...
 
typedef IdentityGridFamily
< HostGrid::dimension,
HostGrid >::Traits 
Traits
 the Traits More...
 
typedef HostGrid::ctype ctype
 The type used to store coordinates, inherited from the HostGrid. More...
 
Exported constants
enum  { dimension =dim }
 A constant that exports the template parameter dim. More...
 
enum  { dimensionworld =dimworld }
 A constant that exports the template parameter dimworld. More...
 
Exported types
typedef Partition
< All_Partition >
::LevelGridView 
LevelGridView
 View types for All_Partition. More...
 
typedef Partition
< All_Partition >
::LeafGridView 
LeafGridView
 
typedef
GridFamily::Traits::LeafIntersection 
LeafIntersection
 A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view. More...
 
typedef
GridFamily::Traits::LevelIntersection 
LevelIntersection
 A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view. More...
 
typedef
GridFamily::Traits::LeafIntersectionIterator 
LeafIntersectionIterator
 A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements. More...
 
typedef
GridFamily::Traits::LevelIntersectionIterator 
LevelIntersectionIterator
 A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level. More...
 
typedef
GridFamily::Traits::HierarchicIterator 
HierarchicIterator
 A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0. More...
 
typedef
GridFamily::Traits::LevelIndexSet 
LevelIndexSet
 A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level. More...
 
typedef
GridFamily::Traits::LeafIndexSet 
LeafIndexSet
 A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid. More...
 
typedef
GridFamily::Traits::GlobalIdSet 
GlobalIdSet
 A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive. More...
 
typedef
GridFamily::Traits::LocalIdSet 
LocalIdSet
 A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive. More...
 
typedef
GridFamily::Traits::CollectiveCommunication 
CollectiveCommunication
 A type that is a model of Dune::CollectiveCommunication. It provides a portable way for collective communication on the set of processes used by the grid. More...
 

Public Member Functions

 IdentityGrid (HostGrid &hostgrid)
 Constructor. More...
 
 ~IdentityGrid ()
 Desctructor. More...
 
int maxLevel () const
 Return maximum level defined in this grid. More...
 
template<int codim>
Traits::template Codim< codim >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level. More...
 
template<int codim>
Traits::template Codim< codim >
::LevelIterator 
lend (int level) const
 one past the end on this level More...
 
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >
::template Partition< PiType >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level. More...
 
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >
::template Partition< PiType >
::LevelIterator 
lend (int level) const
 one past the end on this level More...
 
template<int codim>
Traits::template Codim< codim >
::LeafIterator 
leafbegin () const
 Iterator to first leaf entity of given codim. More...
 
template<int codim>
Traits::template Codim< codim >
::LeafIterator 
leafend () const
 one past the end of the sequence of leaf entities More...
 
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >
::template Partition< PiType >
::LeafIterator 
leafbegin () const
 Iterator to first leaf entity of given codim. More...
 
template<int codim, PartitionIteratorType PiType>
Traits::template Codim< codim >
::template Partition< PiType >
::LeafIterator 
leafend () const
 one past the end of the sequence of leaf entities More...
 
int size (int level, int codim) const
 Number of grid entities per level and codim. More...
 
size_t numBoundarySegments () const
 returns the number of boundary segments within the macro grid More...
 
int size (int codim) const
 number of leaf entities per codim in this process More...
 
int size (int level, GeometryType type) const
 number of entities per level, codim and geometry type in this process More...
 
int size (GeometryType type) const
 number of leaf entities per codim and geometry type in this process More...
 
const Traits::GlobalIdSetglobalIdSet () const
 Access to the GlobalIdSet. More...
 
const Traits::LocalIdSetlocalIdSet () const
 Access to the LocalIdSet. More...
 
const Traits::LevelIndexSetlevelIndexSet (int level) const
 Access to the LevelIndexSets. More...
 
const Traits::LeafIndexSetleafIndexSet () const
 Access to the LeafIndexSet. More...
 
template<class EntitySeed >
Traits::template Codim
< EntitySeed::codimension >
::EntityPointer 
entityPointer (const EntitySeed &seed) const
 Create EntityPointer from EntitySeed. More...
 
template<class EntitySeed >
Traits::template Codim
< EntitySeed::codimension >
::Entity 
entity (const EntitySeed &seed) const
 Create Entity from EntitySeed. More...
 
unsigned int overlapSize (int codim) const
 Size of the overlap on the leaf level. More...
 
unsigned int ghostSize (int codim) const
 Size of the ghost cell layer on the leaf level. More...
 
unsigned int overlapSize (int level, int codim) const
 Size of the overlap on a given level. More...
 
unsigned int ghostSize (int level, int codim) const
 Size of the ghost cell layer on a given level. More...
 
const CollectiveCommunication
< IdentityGrid > & 
comm () const
 dummy collective communication More...
 
HostGridTypegetHostGrid () const
 Returns the hostgrid this IdentityGrid lives in. More...
 
template<int codim>
HostGrid::Traits::template
Codim< codim >::EntityPointer 
getHostEntityPointer (const typename Traits::template Codim< codim >::Entity &e) const
 Returns the hostgrid entity encapsulated in given IdentityGrid entity. More...
 
template<int codim>
const
HostGrid::Traits::template
Codim< codim >::Entity
getHostEntity (const typename Traits::template Codim< codim >::Entity &e) const
 
Traits::template Partition
< pitype >::LevelGridView 
levelGridView (int level) const
 View for a grid level. More...
 
Traits::template Partition
< All_Partition >
::LevelGridView 
levelGridView (int level) const
 View for a grid level for All_Partition. More...
 
Traits::template Partition
< pitype >::LeafGridView 
leafGridView () const
 View for the leaf grid. More...
 
Traits::template Partition
< All_Partition >
::LeafGridView 
leafGridView () const
 View for the leaf grid for All_Partition. More...
 
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const
 
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const
 
bool loadBalance ()
 default implementation of load balance does nothing and returns false More...
 
bool loadBalance (DataHandle &data)
 default implementation of load balance does nothing and returns false More...
 
Grid Refinement Methods
void globalRefine (int refCount)
 
bool mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e)
 Mark entity for refinement. More...
 
int getMark (const typename Traits::template Codim< 0 >::Entity &e) const
 Return refinement mark for entity. More...
 
bool preAdapt ()
 returns true, if at least one entity is marked for adaption More...
 
bool adapt ()
 Triggers the grid refinement process. More...
 
void postAdapt ()
 Clean up refinement markers. More...
 
Adaptivity and grid refinement
bool mark (int refCount, const typename Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt. More...
 
int getMark (const typename Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity More...
 

Protected Member Functions

GridImp & asImp ()
 Barton-Nackman trick. More...
 
const GridImp & asImp () const
 Barton-Nackman trick. More...
 

Static Protected Member Functions

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...
 

Protected Attributes

HostGrid * hostgrid_
 The host grid which contains the actual grid hierarchy structure. More...
 

Detailed Description

template<class HostGrid>
singleton Dune::IdentityGrid< HostGrid >

Provides a meta grid that is identical to its host.

Template Parameters
HostGridThe host grid type wrapped by the IdentityGrid

Member Typedef Documentation

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::CollectiveCommunication Dune::Grid< dim, dimworld, ct, GridFamily >::CollectiveCommunication
inherited

A type that is a model of Dune::CollectiveCommunication. It provides a portable way for collective communication on the set of processes used by the grid.

template<class HostGrid >
typedef HostGrid::ctype Dune::IdentityGrid< HostGrid >::ctype

The type used to store coordinates, inherited from the HostGrid.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::GlobalIdSet Dune::Grid< dim, dimworld, ct, GridFamily >::GlobalIdSet
inherited

A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is unique over all processes over which the grid is partitioned. The numbering is not necessarily consecutive.

template<class HostGrid >
typedef IdentityGridFamily<HostGrid::dimension,HostGrid> Dune::IdentityGrid< HostGrid >::GridFamily

type of the used GridFamily for this grid

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::HierarchicIterator Dune::Grid< dim, dimworld, ct, GridFamily >::HierarchicIterator
inherited

A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine, but not to modify, entities of codimension 0 that result from refinement of an entity of codimension 0.

template<class HostGrid >
typedef HostGrid Dune::IdentityGrid< HostGrid >::HostGridType
Todo:
Should not be public
template<int dim, int dimworld, class ct , class GridFamily >
typedef Partition< All_Partition >:: LeafGridView Dune::Grid< dim, dimworld, ct, GridFamily >::LeafGridView
inherited
template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LeafIndexSet Dune::Grid< dim, dimworld, ct, GridFamily >::LeafIndexSet
inherited

A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities in the leaf grid.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LeafIntersection Dune::Grid< dim, dimworld, ct, GridFamily >::LeafIntersection
inherited

A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LeafIntersectionIterator Dune::Grid< dim, dimworld, ct, GridFamily >::LeafIntersectionIterator
inherited

A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an leaf element (entity of codimension 0) with other leaf elements.

template<int dim, int dimworld, class ct , class GridFamily >
typedef Partition< All_Partition >:: LevelGridView Dune::Grid< dim, dimworld, ct, GridFamily >::LevelGridView
inherited

View types for All_Partition.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LevelIndexSet Dune::Grid< dim, dimworld, ct, GridFamily >::LevelIndexSet
inherited

A type that is a model of Dune::IndexSet which provides a consecutive, but non persistent, numbering for entities on a grid level.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LevelIntersection Dune::Grid< dim, dimworld, ct, GridFamily >::LevelIntersection
inherited

A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimension 0 entities in a level view.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LevelIntersectionIterator Dune::Grid< dim, dimworld, ct, GridFamily >::LevelIntersectionIterator
inherited

A type that is a model of Dune::IntersectionIterator which is an iterator that allows to examine, but not to modify, the intersections of codimension 1 of an element (entity of codimension 0) with other elements on the same level.

template<int dim, int dimworld, class ct , class GridFamily >
typedef GridFamily::Traits::LocalIdSet Dune::Grid< dim, dimworld, ct, GridFamily >::LocalIdSet
inherited

A type that is a model of Dune::IdSet which provides a unique and persistent numbering for all entities in the grid. The numbering is only unique in a single process and it is not necessarily consecutive.

template<class HostGrid >
typedef IdentityGridFamily<HostGrid::dimension,HostGrid>::Traits Dune::IdentityGrid< HostGrid >::Traits

the Traits

Constructor & Destructor Documentation

template<class HostGrid >
Dune::IdentityGrid< HostGrid >::IdentityGrid ( HostGrid &  hostgrid)
inlineexplicit

Constructor.

Parameters
hostgridThe host grid wrapped by the IdentityGrid
template<class HostGrid >
Dune::IdentityGrid< HostGrid >::~IdentityGrid ( )
inline

Desctructor.

Member Function Documentation

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::adapt ( )
inline

Triggers the grid refinement process.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<int dim, int dimworld, class ct , class GridFamily >
GridImp& Dune::Grid< dim, dimworld, ct, GridFamily >::asImp ( )
inlineprotectedinherited

Barton-Nackman trick.

Referenced by Dune::Grid< dim, dimworld, ct, GridFamily >::adapt(), Dune::Grid< dim, dimworld, ct, GridFamily >::comm(), Dune::Grid< dim, dimworld, ct, GridFamily >::communicate(), Dune::Grid< dim, dimworld, ct, GridFamily >::entity(), Dune::Grid< dim, dimworld, ct, GridFamily >::entityPointer(), Dune::Grid< dim, dimworld, ct, GridFamily >::getMark(), Dune::Grid< dim, dimworld, ct, GridFamily >::ghostSize(), Dune::Grid< dim, dimworld, ct, GridFamily >::globalIdSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::globalRefine(), Dune::Grid< dim, dimworld, ct, GridFamily >::lbegin(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::lbegin(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafbegin(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafbegin(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafend(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafend(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafGridView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::leafIndexSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::lend(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::lend(), Dune::Grid< dim, dimworld, ct, GridFamily >::levelGridView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::levelGridView(), Dune::Grid< dim, dimworld, ct, GridFamily >::levelIndexSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::loadBalance(), Dune::Grid< dim, dimworld, ct, GridFamily >::localIdSet(), Dune::Grid< dim, dimworld, ct, GridFamily >::mark(), Dune::Grid< dim, dimworld, ct, GridFamily >::maxLevel(), Dune::Grid< dim, dimworld, ct, GridFamily >::numBoundarySegments(), Dune::Grid< dim, dimworld, ct, GridFamily >::overlapSize(), Dune::Grid< dim, dimworld, ct, GridFamily >::postAdapt(), Dune::Grid< dim, dimworld, ct, GridFamily >::preAdapt(), and Dune::Grid< dim, dimworld, ct, GridFamily >::size().

template<int dim, int dimworld, class ct , class GridFamily >
const GridImp& Dune::Grid< dim, dimworld, ct, GridFamily >::asImp ( ) const
inlineprotectedinherited

Barton-Nackman trick.

template<class HostGrid >
const CollectiveCommunication<IdentityGrid>& Dune::IdentityGrid< HostGrid >::comm ( ) const
inline

dummy collective communication

void Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir,
int  level 
) const
inlineinherited

dummy communicate, doing nothing

void Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited

dummy communicate, doing nothing

template<class HostGrid >
template<class EntitySeed >
Traits::template Codim<EntitySeed::codimension>::Entity Dune::IdentityGrid< HostGrid >::entity ( const EntitySeed seed) const
inline
template<class HostGrid >
template<class EntitySeed >
Traits::template Codim<EntitySeed::codimension>::EntityPointer Dune::IdentityGrid< HostGrid >::entityPointer ( const EntitySeed seed) const
inline

Create EntityPointer from EntitySeed.

Deprecated:
This method is deprecated and will be removed after the release of dune-grid 2.4. Please use entity() instead, which will directly return an Entity object that you can then store for later use. The EntityPointer concept in general is deprecated and will not be available after dune-grid 2.4 has been released.
Deprecated:
"entityPointer() is deprecated and will be removed after the release of dune-grid 2.4. Use entity() instead to directly obtain an Entity object."

References Dune::EntitySeed< GridImp, EntitySeedImp >::codimension, and Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
template<int codim>
const HostGrid::Traits::template Codim<codim>::Entity& Dune::IdentityGrid< HostGrid >::getHostEntity ( const typename Traits::template Codim< codim >::Entity e) const
inline
template<class HostGrid >
template<int codim>
HostGrid::Traits::template Codim<codim>::EntityPointer Dune::IdentityGrid< HostGrid >::getHostEntityPointer ( const typename Traits::template Codim< codim >::Entity e) const
inline

Returns the hostgrid entity encapsulated in given IdentityGrid entity.

Deprecated:
"getHostEntityPointer() is deprecated and will be removed after the release of dune-grid 2.4. Use getHostEntity() instead to obtain a reference to the host entity object."

References Dune::GridDefaultImplementation< HostGrid::dimension, HostGrid::dimensionworld, HostGrid::ctype, IdentityGridFamily< HostGrid::dimension, HostGrid > >::getRealImplementation().

template<class HostGrid >
HostGridType& Dune::IdentityGrid< HostGrid >::getHostGrid ( ) const
inline
template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::getMark ( const typename Traits::template Codim< 0 >::Entity e) const
inline

Return refinement mark for entity.

Returns
refinement mark (1,0,-1)

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<int dim, int dimworld, class ct , class GridFamily >
int Dune::Grid< dim, dimworld, ct, GridFamily >::getMark ( const typename Codim< 0 >::Entity e) const
inlineinherited

returns adaptation mark for given entity

Parameters
[in]eEntity for which adaptation mark should be determined
Returns
int adaptation mark currently set for given Entity e

References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().

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 Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::getRealImplementation ( InterfaceType &&  i)
inlinestaticprotectedinherited

return real implementation of interface class

Referenced by Dune::IdentityGrid< HostGrid >::getHostEntity(), and Dune::IdentityGrid< HostGrid >::getHostEntityPointer().

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::ghostSize ( int  codim) const
inline

Size of the ghost cell layer on the leaf level.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::ghostSize ( int  level,
int  codim 
) const
inline

Size of the ghost cell layer on a given level.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
const Traits::GlobalIdSet& Dune::IdentityGrid< HostGrid >::globalIdSet ( ) const
inline

Access to the GlobalIdSet.

template<class HostGrid >
void Dune::IdentityGrid< HostGrid >::globalRefine ( int  refCount)
inline

global refinement

Todo:
optimize implementation

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
template<int codim>
Traits::template Codim<codim>::LevelIterator Dune::IdentityGrid< HostGrid >::lbegin ( int  level) const
inline

Iterator to first entity of given codim on level.

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim<codim>::template Partition<PiType>::LevelIterator Dune::IdentityGrid< HostGrid >::lbegin ( int  level) const
inline

Iterator to first entity of given codim on level.

template<class HostGrid >
template<int codim>
Traits::template Codim<codim>::LeafIterator Dune::IdentityGrid< HostGrid >::leafbegin ( ) const
inline

Iterator to first leaf entity of given codim.

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim<codim>::template Partition<PiType>::LeafIterator Dune::IdentityGrid< HostGrid >::leafbegin ( ) const
inline

Iterator to first leaf entity of given codim.

template<class HostGrid >
template<int codim>
Traits::template Codim<codim>::LeafIterator Dune::IdentityGrid< HostGrid >::leafend ( ) const
inline

one past the end of the sequence of leaf entities

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim<codim>::template Partition<PiType>::LeafIterator Dune::IdentityGrid< HostGrid >::leafend ( ) const
inline

one past the end of the sequence of leaf entities

Traits::template Partition<pitype>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::leafGridView ( ) const
inlineinherited

View for the leaf grid.

Deprecated:
"After DUNE 2.4, grid views will always model the All_Partition. The template method leafGridView< pitype > will be removed without replacement. Use leafGridView() instead."
Traits::template Partition<All_Partition>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::leafGridView ( ) const
inlineinherited

View for the leaf grid for All_Partition.

template<class HostGrid >
const Traits::LeafIndexSet& Dune::IdentityGrid< HostGrid >::leafIndexSet ( ) const
inline

Access to the LeafIndexSet.

Referenced by Dune::IdentityGrid< HostGrid >::size().

template<class HostGrid >
template<int codim>
Traits::template Codim<codim>::LevelIterator Dune::IdentityGrid< HostGrid >::lend ( int  level) const
inline

one past the end on this level

template<class HostGrid >
template<int codim, PartitionIteratorType PiType>
Traits::template Codim<codim>::template Partition<PiType>::LevelIterator Dune::IdentityGrid< HostGrid >::lend ( int  level) const
inline

one past the end on this level

Traits::template Partition<pitype>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::levelGridView ( int  level) const
inlineinherited

View for a grid level.

Deprecated:
"After DUNE 2.4, grid views will always model the All_Partition. The template method levelGridView< pitype > will be removed without replacement. Use levelGridView() instead."
Traits::template Partition<All_Partition>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::levelGridView ( int  level) const
inlineinherited

View for a grid level for All_Partition.

template<class HostGrid >
const Traits::LevelIndexSet& Dune::IdentityGrid< HostGrid >::levelIndexSet ( int  level) const
inline

Access to the LevelIndexSets.

References Dune::IdentityGrid< HostGrid >::maxLevel().

bool Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::loadBalance ( )
inlineinherited

default implementation of load balance does nothing and returns false

bool Dune::GridDefaultImplementation< dim, dimworld, HostGrid::ctype , IdentityGridFamily< HostGrid::dimension, HostGrid > >::loadBalance ( DataHandle &  data)
inlineinherited

default implementation of load balance does nothing and returns false

template<class HostGrid >
const Traits::LocalIdSet& Dune::IdentityGrid< HostGrid >::localIdSet ( ) const
inline

Access to the LocalIdSet.

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity e 
)
inline

Mark entity for refinement.

This only works for entities of codim 0. The parameter is currently ignored

Returns
  • true, if marking was succesfull
  • false, if marking was not possible

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<int dim, int dimworld, class ct , class GridFamily >
bool Dune::Grid< dim, dimworld, ct, GridFamily >::mark ( int  refCount,
const typename Codim< 0 >::Entity e 
)
inlineinherited

Marks an entity to be refined/coarsened in a subsequent adapt.

Parameters
[in]refCountNumber of subdivisions that should be applied. Negative value means coarsening.
[in]eEntity that should be marked
Returns
true if Entity was marked, false otherwise.

References Dune::Grid< dim, dimworld, ct, GridFamily >::asImp().

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::maxLevel ( ) const
inline

Return maximum level defined in this grid.

Levels are numbered 0 ... maxlevel with 0 the coarsest level.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

Referenced by Dune::IdentityGrid< HostGrid >::levelIndexSet().

template<class HostGrid >
size_t Dune::IdentityGrid< HostGrid >::numBoundarySegments ( ) const
inline

returns the number of boundary segments within the macro grid

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::overlapSize ( int  codim) const
inline

Size of the overlap on the leaf level.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
unsigned int Dune::IdentityGrid< HostGrid >::overlapSize ( int  level,
int  codim 
) const
inline

Size of the overlap on a given level.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
void Dune::IdentityGrid< HostGrid >::postAdapt ( )
inline

Clean up refinement markers.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
bool Dune::IdentityGrid< HostGrid >::preAdapt ( )
inline

returns true, if at least one entity is marked for adaption

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  level,
int  codim 
) const
inline

Number of grid entities per level and codim.

References Dune::IdentityGrid< HostGrid >::hostgrid_.

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  codim) const
inline
template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( int  level,
GeometryType  type 
) const
inline

number of entities per level, codim and geometry type in this process

template<class HostGrid >
int Dune::IdentityGrid< HostGrid >::size ( GeometryType  type) const
inline

number of leaf entities per codim and geometry type in this process

References Dune::IdentityGrid< HostGrid >::leafIndexSet(), and Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp, TypesImp >::size().

Member Data Documentation

template<class HostGrid >
HostGrid* Dune::IdentityGrid< HostGrid >::hostgrid_
protected

The documentation for this singleton was generated from the following file: