dune-grid  2.3.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
Dune::AlbertaGrid< dim, dimworld > Class Template Reference

[ provides Dune::Grid ] More...

#include <dune/grid/albertagrid/agrid.hh>

Inheritance diagram for Dune::AlbertaGrid< dim, dimworld >:
Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > > Dune::Grid< dim, dimworld, ct, GridFamily >

Public Types

typedef AlbertaGridFamily< dim,
dimworld > 
GridFamily
 the grid family of AlbertaGrid More...
 
typedef GridFamily::ctype ctype
 
typedef AlbertaGridFamily< dim,
dimworld >::Traits 
Traits
 
typedef Traits::LeafIndexSet LeafIndexSet
 type of leaf index set More...
 
typedef Traits::LevelIndexSet LevelIndexSet
 type of level index sets More...
 
typedef Traits::HierarchicIndexSet HierarchicIndexSet
 type of hierarchic index set More...
 
typedef Traits::GlobalIdSet GlobalIdSet
 type of global id set More...
 
typedef Traits::LocalIdSet LocalIdSet
 type of local id set More...
 
typedef
Traits::CollectiveCommunication 
CollectiveCommunication
 type of collective communication 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...
 

Public Member Functions

 AlbertaGrid ()
 create an empty grid More...
 
 AlbertaGrid (const Alberta::MacroData< dimension > &macroData, const Dune::shared_ptr< DuneBoundaryProjection< dimensionworld > > &projection=Dune::shared_ptr< DuneBoundaryProjection< dimensionworld > >())
 create a grid from an ALBERTA macro data structure More...
 
template<class Proj , class Impl >
 AlbertaGrid (const Alberta::MacroData< dimension > &macroData, const Alberta::ProjectionFactoryInterface< Proj, Impl > &projectionFactory)
 
 AlbertaGrid (const std::string &macroGridFileName)
 create a grid from an ALBERTA macro grid file More...
 
 ~AlbertaGrid ()
 desctructor More...
 
int maxLevel () const
 
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >
::template Partition< pitype >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level. More...
 
template<int cd, PartitionIteratorType pitype>
Traits::template Codim< cd >
::template Partition< pitype >
::LevelIterator 
lend (int level) const
 one past the end on this level 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 >
::LeafIterator 
leafbegin () const
 return LeafIterator which points to first leaf entity More...
 
template<int codim, PartitionIteratorType pitype>
Traits::template Codim< codim >
::template Partition< pitype >
::LeafIterator 
leafend () const
 return LeafIterator which points behind last leaf entity More...
 
template<int codim>
Traits::template Codim< codim >
::LeafIterator 
leafbegin () const
 return LeafIterator which points to first leaf entity More...
 
template<int codim>
Traits::template Codim< codim >
::LeafIterator 
leafend () const
 return LeafIterator which points behind last leaf entity More...
 
int size (int level, int codim) const
 Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know. More...
 
int size (int level, GeometryType type) const
 number of entities per level and geometry type in this process More...
 
int size (int codim) const
 number of leaf entities per codim in this process More...
 
int size (GeometryType type) const
 number of leaf entities per geometry type in this process More...
 
size_t numBoundarySegments () const
 number of boundary segments within the macro grid More...
 
template<PartitionIteratorType pitype>
Traits::template Partition
< pitype >::LevelGridView 
levelView (int level) const
 View for a grid level. More...
 
template<PartitionIteratorType pitype>
Traits::template Partition
< pitype >::LeafGridView 
leafView () const
 View for the leaf grid. More...
 
Traits::template Partition
< All_Partition >
::LevelGridView 
levelView (int level) const
 View for a grid level for All_Partition. More...
 
Traits::template Partition
< All_Partition >
::LeafGridView 
leafView () const
 View for the leaf grid for All_Partition. More...
 
int getMark (const typename Traits::template Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity 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...
 
void globalRefine (int refCount)
 uses the interface, mark on entity and refineLocal More...
 
template<class DataHandle >
void globalRefine (int refCount, AdaptDataHandleInterface< This, DataHandle > &handle)
 
bool adapt ()
 Refine all positive marked leaf entities, coarsen all negative marked entities if possible. More...
 
template<class DataHandle >
bool adapt (AdaptDataHandleInterface< This, DataHandle > &handle)
 callback adapt method with AdaptDataHandleInterface More...
 
bool preAdapt ()
 returns true, if a least one element is marked for coarsening More...
 
void postAdapt ()
 clean up some markers More...
 
const CollectiveCommunicationcomm () const
 return reference to collective communication, if MPI found this is specialisation for MPI More...
 
template<class EntitySeed >
Traits::template Codim
< EntitySeed::codimension >
::EntityPointer 
entityPointer (const EntitySeed &seed) const
 obtain EntityPointer from EntitySeed. More...
 
template<GrapeIOFileFormatType ftype>
bool writeGrid (const std::string &filename, ctype time) const
 write Grid to file in specified GrapeIOFileFormatType More...
 
template<GrapeIOFileFormatType ftype>
bool readGrid (const std::string &filename, ctype &time)
 read Grid from file filename and store time of mesh in time More...
 
const HierarchicIndexSethierarchicIndexSet () const
 
const Traits::LevelIndexSetlevelIndexSet (int level) const
 return level index set for given level More...
 
const Traits::LeafIndexSetleafIndexSet () const
 return leaf index set More...
 
const GlobalIdSetglobalIdSet () const
 return global IdSet More...
 
const LocalIdSetlocalIdSet () const
 return local IdSet More...
 
ALBERTA MESH * getMesh () const
 
const MeshPointermeshPointer () const
 
const DofNumberingdofNumbering () const
 
const LevelProviderlevelProvider () const
 
int dune2alberta (int codim, int i) const
 
int alberta2dune (int codim, int i) const
 
int generic2alberta (int codim, int i) const
 
int alberta2generic (int codim, int i) const
 
bool writeGridXdr (const std::string &filename, ctype time) const
 
bool readGridXdr (const std::string &filename, ctype &time)
 reads ALBERTA mesh file More...
 
const
AlbertaGridLeafIntersection
< const This > & 
getRealIntersection (const typename Traits::LeafIntersection &intersection) const
 
const Alberta::GlobalVectorgetCoord (const ElementInfo &elementInfo, int vertex) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::template Partition
< pitype >::LevelIterator 
lbegin (int level) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::template Partition
< pitype >::LevelIterator 
lend (int level) const
 
template<int codim>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::LevelIterator 
lbegin (int level) const
 
template<int codim>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::LevelIterator 
lend (int level) const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::template Partition
< pitype >::LeafIterator 
leafbegin () const
 
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::template Partition
< pitype >::LeafIterator 
leafend () const
 
template<int codim>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::LeafIterator 
leafbegin () const
 
template<int codim>
AlbertaGrid< dim, dimworld >
::Traits::template Codim
< codim >::LeafIterator 
leafend () 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...
 
int ghostSize (int level, int codim) const
 ghostSize is zero by default More...
 
int ghostSize (int codim) const
 ghostSize is zero by default More...
 
int overlapSize (int level, int codim) const
 overlapSize is zero by default More...
 
int overlapSize (int codim) const
 overlapSize is zero by default 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...
 
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...
 

Static Public Member Functions

static std::string typeName ()
 
template<int codim>
static int getTwist (const typename Traits::template Codim< codim >::Entity &entity)
 
template<int codim>
static int getTwist (const typename Traits::template Codim< 0 >::Entity &entity, int subEntity)
 
static int getTwistInInside (const typename Traits::LeafIntersection &intersection)
 
static int getTwistInOutside (const typename Traits::LeafIntersection &intersection)
 

Static Public Attributes

static const int dimension = GridFamily::dimension
 
static const int dimensionworld = GridFamily::dimensionworld
 

Protected Member Functions

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

Static Protected Member Functions

static
ReturnImplementationType
< InterfaceType >
::ImplementationType & 
getRealImplementation (InterfaceType &i)
 return real implementation of interface class More...
 

Friends

template<int , int , class >
class AlbertaGridEntity
 
template<int , class >
class AlbertaGridEntityPointer
 
template<class , PartitionIteratorType >
class AlbertaLevelGridView
 
template<class , PartitionIteratorType >
class AlbertaLeafGridView
 
class GridFactory< This >
 
struct DGFGridFactory< This >
 
class AlbertaGridHierarchicIterator< This >
 
class AlbertaGridIntersectionBase< const This >
 
class AlbertaGridLeafIntersection< const This >
 
class AlbertaMarkerVector< dim, dimworld >
 
struct AlbertaMarkerVector< dim, dimworld >::MarkSubEntities< true >
 
struct AlbertaMarkerVector< dim, dimworld >::MarkSubEntities< false >
 
class AlbertaGridIndexSet< dim, dimworld >
 
class AlbertaGridHierarchicIndexSet< dim, dimworld >
 
template<class , class >
class Alberta::AdaptRestrictProlongHandler
 
class AlbertaGridLeafIntersectionIterator< const This >
 

Detailed Description

template<int dim, int dimworld = Alberta::dimWorld>
class Dune::AlbertaGrid< dim, dimworld >

[ provides Dune::Grid ]

simplicial grid imlementation from the ALBERTA finite element toolbox

AlbertaGrid provides access to the grid from the ALBERTA finite element toolbox through the Dune interface.

ALBERTA is a finite element toolbox written by Alfred Schmidt and Kunibert G. Siebert (see http://www.alberta-fem.de). It contains a simplicial mesh in 1, 2 and 3 space dimensions that can be dynamically adapted by a bisection algorithm.

Supported ALBERTA versions include 2.0 or higher. It can be downloaded from the ALBERTA website (www.alberta-fem.de). After installing ALBERTA, just configure DUNE with the –with-alberta option and provide the path to ALBERTA.

Each program linking to ALBERTA only supports a fixed dimension of world. This is obtained from the ALBERTA_DIM preprocessor variable, which defaults to WORLDDIM.

Further installation instructions can be found here: http://www.dune-project.org/external_libraries/install_alberta.html

If you use automake and want to compile a program maude, the following Makefile.am snippet might help:

bin_PROGRAMS = maude
ALBERTA_DIM = 2
maude_SOURCES = maude.cc
maude_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA_CPPFLAGS)
maude_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA_LDFLAGS) $(DUNE_LDFLAGS)
maude_LDADD = $(ALBERTA_LIBS) $(DUNE_LIBS)

This will compile and link your program with the world dimension specified by WORLDDIM. If you want to use different world dimensions per program, you can use the following snippet in your Makefile.am:

bin_PROGRAMS = maude2d maude3d
maude2d_SOURCES = maude.cc
maude2d_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA2D_CPPFLAGS)
maude2d_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA2D_LDFLAGS) $(DUNE_LDFLAGS)
maude2d_LDADD = $(ALBERTA2D_LIBS) $(DUNE_LIBS)
maude3d_SOURCES = maude.cc
maude3d_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA3D_CPPFLAGS)
maude3d_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA3D_LDFLAGS) $(DUNE_LDFLAGS)
maude3d_LDADD = $(ALBERTA3D_LIBS) $(DUNE_LIBS)

In either case the preprocessor variables HAVE_ALBERTA, which tells you whether ALBERTA was found by configure, and ALBERTA_DIM which tells you the dimension of world for this program.

For further details look into the alberta.m4 autoconf snippet.

Member Typedef Documentation

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::CollectiveCommunication Dune::AlbertaGrid< dim, dimworld >::CollectiveCommunication

type of collective communication

template<int dim, int dimworld = Alberta::dimWorld>
typedef GridFamily::ctype Dune::AlbertaGrid< dim, dimworld >::ctype
template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::GlobalIdSet Dune::AlbertaGrid< dim, dimworld >::GlobalIdSet

type of global id set

template<int dim, int dimworld = Alberta::dimWorld>
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGrid< dim, dimworld >::GridFamily

the grid family of AlbertaGrid

template<int dim, int dimworld = Alberta::dimWorld>
typedef Traits::HierarchicIndexSet Dune::AlbertaGrid< dim, dimworld >::HierarchicIndexSet

type of hierarchic index set

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<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 = Alberta::dimWorld>
typedef Traits::LeafIndexSet Dune::AlbertaGrid< dim, dimworld >::LeafIndexSet

type of leaf index set

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 = Alberta::dimWorld>
typedef Traits::LevelIndexSet Dune::AlbertaGrid< dim, dimworld >::LevelIndexSet

type of level index sets

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 = Alberta::dimWorld>
typedef Traits::LocalIdSet Dune::AlbertaGrid< dim, dimworld >::LocalIdSet

type of local id set

template<int dim, int dimworld = Alberta::dimWorld>
typedef AlbertaGridFamily< dim, dimworld >::Traits Dune::AlbertaGrid< dim, dimworld >::Traits

Member Enumeration Documentation

template<int dim, int dimworld, class ct , class GridFamily >
anonymous enum
inherited

A constant that exports the template parameter dim.

Enumerator
dimension 

The dimension of the grid.

template<int dim, int dimworld, class ct , class GridFamily >
anonymous enum
inherited

A constant that exports the template parameter dimworld.

Enumerator
dimensionworld 

The dimension of the world the grid lives in.

Constructor & Destructor Documentation

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( )
inline

create an empty grid

template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const Alberta::MacroData< dimension > &  macroData,
const Dune::shared_ptr< DuneBoundaryProjection< dimensionworld > > &  projection = Dune::shared_ptr< DuneBoundaryProjectiondimensionworld > >() 
)
inline

create a grid from an ALBERTA macro data structure

Parameters
[in]macroDatamacro data to create grid from
[in]projectionshared pointer to a global boundary projection (defaults to 0)
template<int dim, int dimworld>
template<class Proj , class Impl >
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const Alberta::MacroData< dimension > &  macroData,
const Alberta::ProjectionFactoryInterface< Proj, Impl > &  projectionFactory 
)
inline
template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::AlbertaGrid ( const std::string &  macroGridFileName)
inline

create a grid from an ALBERTA macro grid file

Parameters
[in]macroGridFileNamename of the macro grid file
template<int dim, int dimworld>
Dune::AlbertaGrid< dim, dimworld >::~AlbertaGrid ( )
inline

desctructor

Member Function Documentation

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::adapt ( )
inline

Refine all positive marked leaf entities, coarsen all negative marked entities if possible.

Returns
true if a least one entity was refined

The complete adaptation process works as follows:

template<int dim, int dimworld>
template<class DataHandle >
bool Dune::AlbertaGrid< dim, dimworld >::adapt ( AdaptDataHandleInterface< This, DataHandle > &  handle)
inline
template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::alberta2dune ( int  codim,
int  i 
) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::alberta2generic ( int  codim,
int  i 
) const
inline
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 >::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::Grid< dim, dimworld, ct, GridFamily >::leafbegin(), Dune::Grid< dim, dimworld, ct, GridFamily >::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 >::leafView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafView(), Dune::Grid< dim, dimworld, ct, GridFamily >::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 >::levelView(), Dune::GridDefaultImplementation< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::levelView(), 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<int dim, int dimworld = Alberta::dimWorld>
const CollectiveCommunication& Dune::AlbertaGrid< dim, dimworld >::comm ( ) const
inline

return reference to collective communication, if MPI found this is specialisation for MPI

void Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir,
int  level 
) const
inlineinherited

dummy communicate, doing nothing

void Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited

dummy communicate, doing nothing

template<int dim, int dimworld = Alberta::dimWorld>
const DofNumbering& Dune::AlbertaGrid< dim, dimworld >::dofNumbering ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::dune2alberta ( int  codim,
int  i 
) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::EntityPointer Dune::AlbertaGrid< dim, dimworld >::entityPointer ( const EntitySeed seed) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
int Dune::AlbertaGrid< dim, dimworld >::generic2alberta ( int  codim,
int  i 
) const
inline
template<int dim, int dimworld>
const Alberta::GlobalVector & Dune::AlbertaGrid< dim, dimworld >::getCoord ( const ElementInfo elementInfo,
int  vertex 
) const
inline
template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::getMark ( const typename Traits::template Codim< 0 >::Entity e) const
inline

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

template<int dim, int dimworld = Alberta::dimWorld>
ALBERTA MESH* Dune::AlbertaGrid< dim, dimworld >::getMesh ( ) const
inline
static ReturnImplementationType<InterfaceType>::ImplementationType& Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::getRealImplementation ( InterfaceType i)
inlinestaticprotectedinherited
template<int dim, int dimworld = Alberta::dimWorld>
const AlbertaGridLeafIntersection< const This >& Dune::AlbertaGrid< dim, dimworld >::getRealIntersection ( const typename Traits::LeafIntersection intersection) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
static int Dune::AlbertaGrid< dim, dimworld >::getTwist ( const typename Traits::template Codim< codim >::Entity entity)
inlinestatic
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
static int Dune::AlbertaGrid< dim, dimworld >::getTwist ( const typename Traits::template Codim< 0 >::Entity entity,
int  subEntity 
)
inlinestatic
template<int dim, int dimworld = Alberta::dimWorld>
static int Dune::AlbertaGrid< dim, dimworld >::getTwistInInside ( const typename Traits::LeafIntersection intersection)
inlinestatic
template<int dim, int dimworld = Alberta::dimWorld>
static int Dune::AlbertaGrid< dim, dimworld >::getTwistInOutside ( const typename Traits::LeafIntersection intersection)
inlinestatic
int Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::ghostSize ( int  level,
int  codim 
) const
inlineinherited

ghostSize is zero by default

int Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::ghostSize ( int  codim) const
inlineinherited

ghostSize is zero by default

template<int dim, int dimworld = Alberta::dimWorld>
const GlobalIdSet& Dune::AlbertaGrid< dim, dimworld >::globalIdSet ( ) const
inline

return global IdSet

template<int dim, int dimworld>
void Dune::AlbertaGrid< dim, dimworld >::globalRefine ( int  refCount)
inline

uses the interface, mark on entity and refineLocal

template<int dim, int dimworld>
template<class DataHandle >
void Dune::AlbertaGrid< dim, dimworld >::globalRefine ( int  refCount,
AdaptDataHandleInterface< This, DataHandle > &  handle 
)
inline
template<int dim, int dimworld = Alberta::dimWorld>
const HierarchicIndexSet& Dune::AlbertaGrid< dim, dimworld >::hierarchicIndexSet ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::template Partition<pitype>::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int cd, PartitionIteratorType pitype>
Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const

Iterator to first entity of given codim on level.

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lbegin ( int  level) const

Iterator to first entity of given codim on level.

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid<dim,dimworld>::Traits ::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
Traits ::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const

return LeafIterator which points to first leaf entity

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafbegin ( ) const

return LeafIterator which points to first leaf entity

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
Traits ::template Codim< codim >::template Partition< pitype >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const

return LeafIterator which points behind last leaf entity

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LeafIterator Dune::AlbertaGrid< dim, dimworld >::leafend ( ) const

return LeafIterator which points behind last leaf entity

Traits::template Partition<pitype>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::leafGridView ( ) const
inlineinherited

View for the leaf grid.

Traits::template Partition<All_Partition>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::leafGridView ( ) const
inlineinherited

View for the leaf grid for All_Partition.

template<int dim, int dimworld>
const AlbertaGrid< dim, dimworld >::Traits::LeafIndexSet & Dune::AlbertaGrid< dim, dimworld >::leafIndexSet ( ) const
inline

return leaf index set

template<int dim, int dimworld = Alberta::dimWorld>
template<PartitionIteratorType pitype>
Traits::template Partition< pitype >::LeafGridView Dune::AlbertaGrid< dim, dimworld >::leafView ( ) const
inline

View for the leaf grid.

template<int dim, int dimworld = Alberta::dimWorld>
Traits::template Partition< All_Partition >::LeafGridView Dune::AlbertaGrid< dim, dimworld >::leafView ( ) const
inline

View for the leaf grid for All_Partition.

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim, PartitionIteratorType pitype>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::template Partition< pitype >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
AlbertaGrid< dim, dimworld >::Traits ::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<int cd, PartitionIteratorType pitype>
Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const

one past the end on this level

template<int dim, int dimworld = Alberta::dimWorld>
template<int codim>
Traits::template Codim< codim >::LevelIterator Dune::AlbertaGrid< dim, dimworld >::lend ( int  level) const

one past the end on this level

Traits::template Partition<pitype>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::levelGridView ( int  level) const
inlineinherited

View for a grid level.

Traits::template Partition<All_Partition>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::levelGridView ( int  level) const
inlineinherited

View for a grid level for All_Partition.

template<int dim, int dimworld>
const AlbertaGrid< dim, dimworld >::Traits::LevelIndexSet & Dune::AlbertaGrid< dim, dimworld >::levelIndexSet ( int  level) const
inline

return level index set for given level

template<int dim, int dimworld = Alberta::dimWorld>
const LevelProvider& Dune::AlbertaGrid< dim, dimworld >::levelProvider ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
template<PartitionIteratorType pitype>
Traits::template Partition< pitype >::LevelGridView Dune::AlbertaGrid< dim, dimworld >::levelView ( int  level) const
inline

View for a grid level.

template<int dim, int dimworld = Alberta::dimWorld>
Traits::template Partition< All_Partition >::LevelGridView Dune::AlbertaGrid< dim, dimworld >::levelView ( int  level) const
inline

View for a grid level for All_Partition.

bool Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::loadBalance ( )
inlineinherited

default implementation of load balance does nothing and returns false

bool Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::loadBalance ( DataHandle &  data)
inlineinherited

default implementation of load balance does nothing and returns false

template<int dim, int dimworld = Alberta::dimWorld>
const LocalIdSet& Dune::AlbertaGrid< dim, dimworld >::localIdSet ( ) const
inline

return local IdSet

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity e 
)
inline

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.
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<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::maxLevel ( ) const
inline

Return maximum level defined in this grid. Levels are numbered 0 ... maxLevel with 0 the coarsest level.

template<int dim, int dimworld = Alberta::dimWorld>
const MeshPointer& Dune::AlbertaGrid< dim, dimworld >::meshPointer ( ) const
inline
template<int dim, int dimworld = Alberta::dimWorld>
size_t Dune::AlbertaGrid< dim, dimworld >::numBoundarySegments ( ) const
inline

number of boundary segments within the macro grid

int Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::overlapSize ( int  level,
int  codim 
) const
inlineinherited

overlapSize is zero by default

int Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real , AlbertaGridFamily< dim, dimworld > >::overlapSize ( int  codim) const
inlineinherited

overlapSize is zero by default

template<int dim, int dimworld>
void Dune::AlbertaGrid< dim, dimworld >::postAdapt ( )
inline

clean up some markers

References Dune::AlbertaGrid< dim, dimworld >::size().

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::preAdapt ( )
inline

returns true, if a least one element is marked for coarsening

template<int dim, int dimworld>
template<GrapeIOFileFormatType format>
bool Dune::AlbertaGrid< dim, dimworld >::readGrid ( const std::string &  filename,
ctype time 
)
inline

read Grid from file filename and store time of mesh in time

References Dune::ascii, and Dune::xdr.

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::readGridXdr ( const std::string &  filename,
ctype time 
)
inline
template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  level,
int  codim 
) const
inline

Number of grid entities per level and codim because lbegin and lend are none const, and we need this methods counting the entities on each level, you know.

Referenced by Dune::AlbertaGrid< dim, dimworld >::postAdapt().

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  level,
GeometryType  type 
) const
inline

number of entities per level and geometry type in this process

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( int  codim) const
inline

number of leaf entities per codim in this process

template<int dim, int dimworld>
int Dune::AlbertaGrid< dim, dimworld >::size ( GeometryType  type) const
inline

number of leaf entities per geometry type in this process

template<int dim, int dimworld = Alberta::dimWorld>
static std::string Dune::AlbertaGrid< dim, dimworld >::typeName ( )
inlinestatic
template<int dim, int dimworld>
template<GrapeIOFileFormatType format>
bool Dune::AlbertaGrid< dim, dimworld >::writeGrid ( const std::string &  filename,
ctype  time 
) const
inline

write Grid to file in specified GrapeIOFileFormatType

References Dune::ascii, and Dune::xdr.

template<int dim, int dimworld>
bool Dune::AlbertaGrid< dim, dimworld >::writeGridXdr ( const std::string &  filename,
ctype  time 
) const
inline

Friends And Related Function Documentation

template<int dim, int dimworld = Alberta::dimWorld>
template<class , class >
friend class Alberta::AdaptRestrictProlongHandler
friend
template<int dim, int dimworld = Alberta::dimWorld>
template<int , int , class >
friend class AlbertaGridEntity
friend
template<int dim, int dimworld = Alberta::dimWorld>
template<int , class >
friend class AlbertaGridEntityPointer
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridHierarchicIndexSet< dim, dimworld >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridHierarchicIterator< This >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridIndexSet< dim, dimworld >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridIntersectionBase< const This >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridLeafIntersection< const This >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaGridLeafIntersectionIterator< const This >
friend
template<int dim, int dimworld = Alberta::dimWorld>
template<class , PartitionIteratorType >
friend class AlbertaLeafGridView
friend
template<int dim, int dimworld = Alberta::dimWorld>
template<class , PartitionIteratorType >
friend class AlbertaLevelGridView
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class AlbertaMarkerVector< dim, dimworld >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend struct AlbertaMarkerVector< dim, dimworld >::MarkSubEntities< false >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend struct AlbertaMarkerVector< dim, dimworld >::MarkSubEntities< true >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend struct DGFGridFactory< This >
friend
template<int dim, int dimworld = Alberta::dimWorld>
friend class GridFactory< This >
friend

Member Data Documentation

template<int dim, int dimworld = Alberta::dimWorld>
const int Dune::AlbertaGrid< dim, dimworld >::dimension = GridFamily::dimension
static
template<int dim, int dimworld = Alberta::dimWorld>
const int Dune::AlbertaGrid< dim, dimworld >::dimensionworld = GridFamily::dimensionworld
static

The documentation for this class was generated from the following files: