[ provides Dune::Grid ] More...

#include <dune/grid/alugrid/3d/alugrid.hh>

Inheritance diagram for Dune::ALUSimplexGrid< 3, 3 >:
Inheritance graph

List of all members.

Classes

struct  Partition

Public Types

enum  { dimension = BaseType::dimension, dimensionworld = BaseType::dimensionworld }
typedef
BaseType::DuneBoundaryProjectionType 
DuneBoundaryProjectionType
 type of boundary projection
typedef
BaseType::DuneBoundaryProjectionVector 
DuneBoundaryProjectionVector
 type of boundary projection
typedef BaseType::ctype ctype
typedef BaseType::GridFamily GridFamily
typedef GridFamily::Traits Traits
typedef BaseType::LocalIdSetImp LocalIdSetImp
 Type of the local id set.
typedef Traits::GlobalIdSet GlobalIdSet
 Type of the global id set.
typedef Traits::LocalIdSet LocalIdSet
 Type of the local id set.
typedef
GridFamily::LevelIndexSetImp 
LevelIndexSetImp
 Type of the level index set, needed by data handle.
typedef GridFamily::LeafIndexSetImp LeafIndexSetImp
 Type of the leaf index set, needed by data handle.
typedef BaseType::LeafIteratorImp LeafIteratorImp
 a standard leaf iterator
typedef Traits::Codim
< 0 >::LeafIterator 
LeafIteratorType
typedef Traits::Codim
< 0 >::LeafIterator 
LeafIterator
typedef
BaseType::HierarchicIteratorImp 
HierarchicIteratorImp
typedef BaseType::ObjectStreamType ObjectStreamType
typedef Partition
< All_Partition >
::LevelGridView 
LevelGridView
typedef Partition
< All_Partition >
::LeafGridView 
LeafGridView
enum  
typedef
ALU3dGridIntersectionIterator
< const ThisType
IntersectionIteratorImp
typedef
ALU3dGridIntersectionIterator
< const ThisType
LeafIntersectionIteratorImp
typedef
ALU3dGridLevelIntersectionIterator
< const ThisType
LevelIntersectionIteratorImp
typedef ALU3dGridFamily
< elType, Comm >::Traits 
Traits
 The traits of this class.
typedef
ALU3dGridHierarchicIndexSet
< elType, Comm > 
HierarchicIndexSet
 Type of the hierarchic index set.
typedef
GenericReferenceElement
< alu3d_ctype, dimension > 
ReferenceElementType
 reference element type
typedef ALU3DSPACE ProjectVertex ALUGridVertexProjectionType
 type of ALUGrid Vertex Projection Interface
typedef
Traits::CollectiveCommunication 
CollectiveCommunication
 type of collective communication object
typedef
MakeableInterfaceObject
< typename Traits::template
Codim< 0 >::Entity
EntityObject
typedef
MakeableInterfaceObject
< typename Traits::template
Codim< 1 >::Entity
FaceObject
typedef
MakeableInterfaceObject
< typename Traits::template
Codim< 2 >::Entity
EdgeObject
typedef
MakeableInterfaceObject
< typename Traits::template
Codim< 3 >::Entity
VertexObject
typedef ALUGridObjectFactory
< ThisType
GridObjectFactoryType
typedef
ALU3dGridCommunications
< elType, Comm > 
Communications
Exported types

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.
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.
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.
typedef Partition
< All_Partition >
::LevelGridView 
LevelGridView
 View types for All_Partition.
typedef Partition
< All_Partition >
::LeafGridView 
LeafGridView
typedef
GridFamily::Traits::LeafIntersection 
LeafIntersection
 A type that is a model of Dune::LeafIntersection, an intersections of two codimension 1 of two codimension 0 entities in the leaf view.
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.
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.
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.
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.
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.
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.
typedef ct ctype
 Define type used for coordinates in grid module.
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...

Public Member Functions

 ALUSimplexGrid (const std::string macroName, const MPICommunicatorType mpiComm=BaseType::defaultCommunicator(), const DuneBoundaryProjectionType *bndProject=0, const DuneBoundaryProjectionVector *bndVector=0, const bool verb=true)
 constructor for creating ALUSimplexGrid from given macro grid file
 ALUSimplexGrid (const MPICommunicatorType mpiComm, const DuneBoundaryProjectionType *bndProject, const DuneBoundaryProjectionVector *bndVector, const std::string macroName, const bool verb=true)
 constructor called from ALUGridFactory for creating ALUSimplexGrid from given macro grid file
 ALUSimplexGrid (const MPICommunicatorType mpiComm=BaseType::defaultCommunicator())
 constructor creating empty grid, empty string creates empty grid
template<PartitionIteratorType pitype>
Partition< pitype >::LevelGridView levelView (int level) const
template<PartitionIteratorType pitype>
Partition< pitype >::LeafGridView leafView () const
LevelGridView levelView (int level) const
LeafGridView leafView () const
int maxLevel () const
 Return maximum level defined in this grid. Levels are numbered maxLevel with 0 the coarsest level.
Traits::template Codim< cd >
::template Partition< pitype >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level.
Traits::template Codim< cd >
::template Partition
< All_Partition >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level.
Traits::template Codim< cd >
::template Partition< pitype >
::LevelIterator 
lend (int level) const
 one past the end on this level
Traits::template Codim< cd >
::template Partition
< All_Partition >
::LevelIterator 
lend (int level) const
 one past the end on this level
Traits::template Codim< codim >
::template Partition< pitype >
::LeafIterator 
leafbegin () const
 General definiton for a leaf iterator.
Traits::template Codim< codim >
::LeafIterator 
leafbegin () const
 General definiton for a leaf iterator.
Traits::template Codim< codim >
::template Partition< pitype >
::LeafIterator 
leafend () const
 General definition for an end iterator on leaf level.
Traits::template Codim< codim >
::LeafIterator 
leafend () const
 General definition for an end iterator on leaf level.
int size (int level, int cd) const
 number of grid entities per level and codim
int size (int codim) const
 number of leaf entities per codim in this process
int size (int level, GeometryType type) const
 number of entities per level and geometry type in this process
int size (GeometryType type) const
 number of leaf entities per geometry type in this process
size_t numBoundarySegments () const
 number of boundary segments
size_t numBoundarySegments () const
 returns the number of boundary segments within the macro grid
int global_size (int cd) const
 number of grid entities on all levels for given codim
int hierSetSize (int cd) const
const GlobalIdSetglobalIdSet () const
 get global id set of grid
const LocalIdSetlocalIdSet () const
 get global id set of grid
const Traits::LeafIndexSetleafIndexSet () const
 get leaf index set of the grid
const Traits::LevelIndexSetlevelIndexSet (int level) const
 get level index set of the grid
bool loadBalance ()
 Calculates load of each process and repartition the grid if neccessary. For parameters of the load balancing process see the README file of the ALUGrid package.
bool loadBalance (DataHandle &data)
 Calculates load of each process and repartition the grid if neccessary. For parameters of the load balancing process see the README file of the ALUGrid package.
bool loadBalance (CommDataHandleIF< DataHandleImpl, Data > &dataHandle)
bool loadBalance ()
 default implementation of load balance does nothing and returns false
bool loadBalance (DataHandle &data)
 default implementation of load balance does nothing and returns false
int ghostSize (int level, int codim) const
 ghostSize is one for codim 0 and zero otherwise for this grid
int ghostSize (int codim) const
 ghostSize is one for codim 0 and zero otherwise for this grid
int ghostSize (int level, int codim) const
 ghostSize is zero by default
int ghostSize (int codim) const
 ghostSize is zero by default
int overlapSize (int level, int codim) const
 overlapSize is zero for this grid
int overlapSize (int codim) const
 overlapSize is zero for this grid
int overlapSize (int level, int codim) const
 overlapSize is zero by default
int overlapSize (int codim) const
 overlapSize is zero by default
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const
 Communicate information on distributed entities on the leaf grid. Template parameter is a model of Dune::CommDataHandleIF.
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const
void communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const
const CollectiveCommunicationcomm () const
bool preAdapt ()
 returns if a least one entity was marked for coarsening
bool preAdapt ()
 returns true, if at least one entity is marked for adaption
void postAdapt ()
 clear all entity new markers
void postAdapt ()
 clean up some markers
bool adapt ()
bool adapt (AdaptDataHandleInterface< GridImp, DataHandle > &handle)
bool adapt ()
 Refine all positive marked leaf entities coarsen all negative marked entities if possible.
void globalRefine (int refCount)
 uses the interface, mark on entity and refineLocal
void globalRefine (int refCount, AdaptDataHandleInterface< GridImp, DataHandle > &handle)
bool writeGrid (const std::string filename, alu3d_ctype time) const
 write Grid to file in specified FileFormatType
bool writeGrid_Xdr (const std::string filename, alu3d_ctype time) const
bool writeGrid_Ascii (const std::string filename, alu3d_ctype time, bool scientific=false) const
 write leaf grid in macro grid format to ascii file
bool writeMacroGrid (const std::string path, const std::string filename) const
 write macro grid in ALUGrid macro format to path/filename.rank
bool readGrid (const std::string filename, alu3d_ctype &time)
 read Grid from file filename and store time of mesh in time
const HierarchicIndexSethierarchicIndexSet () const
void setMaxLevel (int mxl)
void updateStatus ()
bool mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e)
bool mark (int refCount, const typename Traits::template Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt.
int getMark (const typename Traits::template Codim< 0 >::Entity &e) const
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.
const BaseType::template
ReturnImplementationType
< IntersectionInterfaceType >
::ImplementationType & 
getRealIntersectionIterator (const IntersectionInterfaceType &it) const
const BaseType::template
ReturnImplementationType
< IntersectionType >
::ImplementationType & 
getRealIntersection (const IntersectionType &intersection) const
const std::vector< GeometryType > & geomTypes (int codim) const
 deliver all geometry types used in this grid
GitterImplTypemyGrid () const
virtual GitterImplTypecreateALUGrid (const std::string &macroName)
ALUGridVertexProjectionTypevertexProjection ()
virtual ALU3DSPACE
Gitter::Geometric::BuilderIF & 
getBuilder () const
virtual void duneNotifyMacroGridChanges ()
const ReferenceElementTypereferenceElement () const
 return reference to Dune reference element according to elType
Traits::template Codim
< EntitySeed::codimension >
::EntityPointer 
entityPointer (const EntitySeed &seed) const
Traits::template Codim
< EntitySeed::codimension >
::EntityPointer 
entityPointer (const EntitySeed &seed) const
int nlinks () const
LeafVertexListTypegetLeafVertexList () const
int getLevelOfLeafVertex (const typename ALU3dImplTraits< elType, Comm >::VertexType &vertex) const
VertexListTypegetVertexList (int level) const
ALU3dGridItemListTypegetGhostLeafList (int codim) const
ALU3dGridItemListTypegetGhostLevelList (int codim, int level) const
ALU3dGridItemListTypegetEdgeList (int level) const
Traits::template Partition
< pitype >::LevelGridView 
levelView (int level) const
 View for a grid level.
Traits::template Partition
< pitype >::LeafGridView 
leafView () const
 View for the leaf grid.
Size methods

int maxLevel () const
 Return maximum level defined in this grid. Levels are numbered 0 ... maxLevel with 0 the coarsest level.
int size (int level, int codim) const
 Return number of grid entities of a given codim on a given level in this process.
int size (int codim) const
 Return number of leaf entities of a given codim in this process.
int size (int level, GeometryType type) const
 Return number of entities per level and geometry type in this process.
int size (GeometryType type) const
 Return number of leaf entities per geometry type in this process.
Iterators

template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >
::LevelIterator 
lbegin (int level) const
 Iterator to first entity of given codim on level.
template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >
::LevelIterator 
lend (int level) const
 one past the end on this level
template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >
::LeafIterator 
leafbegin () const
 Iterator to first entity of given codim on leaf grid.
template<int cd, PartitionIteratorType pitype>
Codim< cd >::template
Partition< pitype >
::LeafIterator 
leafend () const
 one past the end on the leaf level grid
Access to index and id sets

const GlobalIdSetglobalIdSet () const
 return const reference to the grids global id set
const LocalIdSetlocalIdSet () const
 return const reference to the grids local id set
const LeafIndexSetleafIndexSet () const
 return const reference to the grids leaf index set
const LevelIndexSetlevelIndexSet (int level) const
 return const reference to the grids level index set for level level
Parallel data distribution and communication

const CollectiveCommunicationcomm () const
 return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication.
Adaptivity and grid refinement

void globalRefine (int refCount)
 Refine the grid refCount times using the default refinement rule.
bool mark (int refCount, const typename Codim< 0 >::Entity &e)
 Marks an entity to be refined/coarsened in a subsequent adapt.
int getMark (const typename Codim< 0 >::Entity &e) const
 returns adaptation mark for given entity

Static Public Member Functions

static std::string name ()
 for grid identification
static MPICommunicatorType defaultCommunicator ()

Static Public Attributes

static const ALU3dGridElementType elementType

Protected Types

enum  
 

max number of levels

More...
enum  
 

element chunk for refinement

More...
enum  
 

upper estimate on number of elements that could be created when a new element is created

More...
enum  
typedef
MakeableInterfaceObject
< typename Traits::template
Codim< 0 >::Geometry
GeometryObject
typedef
ALUGridBoundaryProjection
< ThisType, alu3d_ctype
ALUGridBoundaryProjectionType
typedef GridFamily::GlobalIdSetImp GlobalIdSetImp
 Type of the global id set.
typedef ALU3dImplTraits
< elType, Comm >
::GitterImplType 
GitterImplType
typedef ALU3dGridVertexList< Comm > VertexListType
typedef
ALU3dGridLeafVertexList< Comm > 
LeafVertexListType
typedef SingleTypeSizeCache
< MyType
SizeCacheType

Protected Member Functions

void calcExtras ()
 reset size and global size, update Level- and LeafIndexSet, if they exist
void calcMaxLevel ()
 calculate maxlevel
void recalcGlobalSize ()
 make grid walkthrough and calc global size
void checkMacroGridFile (const std::string filename)
 check whether macro grid format is of our type
void checkMacroGrid ()
 check whether macro grid has the right element type
const DuneBoundaryProjectionTypeboundaryProjection (const int segmentIndex) const
 return boudanry projection for given segment Id
const Communicationscommunications () const
const GridObjectFactoryTypefactory () const
GridImp & asImp ()
 Barton-Nackman trick.
const GridImp & asImp () const
 Barton-Nackman trick.

Static Protected Member Functions

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

Protected Attributes

GitterImplTypemygrid_
int maxlevel_
int coarsenMarked_
int refineMarked_
std::vector< std::vector
< GeometryType > > 
geomTypes_
HierarchicIndexSet hIndexSet_
GlobalIdSetImpglobalIdSet_
LocalIdSetImp localIdSet_
std::vector< LevelIndexSetImp * > levelIndexVec_
LeafIndexSetImpleafIndexSet_
const ReferenceElementTypereferenceElement_
VertexListType vertexList_ [MAXL]
ALU3dGridItemListType ghostLeafList_ [dimension]
ALU3dGridItemListType ghostLevelList_ [dimension][MAXL]
ALU3dGridItemListType levelEdgeList_ [MAXL]
LeafVertexListType leafVertexList_
SizeCacheTypesizeCache_
GridObjectFactoryType factory_
bool lockPostAdapt_
const DuneBoundaryProjectionTypebndPrj_
const
DuneBoundaryProjectionVector
bndVec_
ALUGridBoundaryProjectionTypevertexProjection_
Communicationscommunications_

Friends

class Conversion< ALUSimplexGrid< dimension, dimensionworld >, HasObjectStream >
class Conversion< const ALUSimplexGrid< dimension, dimensionworld >, HasObjectStream >
class Conversion< ALUSimplexGrid< dimension, dimensionworld >, HasHierarchicIndexSet >
class Conversion< const ALUSimplexGrid< dimension, dimensionworld >, HasHierarchicIndexSet >
class ALU3dGridFactory
class IntersectionIteratorWrapper< const ThisType, LeafIntersectionIteratorImp >
class IntersectionIteratorWrapper< const ThisType, LevelIntersectionIteratorImp >
class LeafIntersectionIteratorWrapper< const ThisType >
class LevelIntersectionIteratorWrapper< const ThisType >
class ALULocalGeometryStorage< const ThisType, GeometryObject, 8 >
class ALUGridBoundaryProjection< ThisType, alu3d_ctype >

Detailed Description

template<>
class Dune::ALUSimplexGrid< 3, 3 >

[ provides Dune::Grid ]

constructor for creating ALUSimplexGrid from given macro grid file

Parameters:
macroName filename for macro grid in ALUGrid tetra format
mpiComm MPI Communicator (when HAVE_MPI == 1 then mpiComm is of type MPI_Comm and the default value is MPI_COMM_WORLD)
bndProject global boundary projection pointer
bndVector pointer to vector holding boundary projection for each boundary segment. ALUGrid takes ownership of this pointer and will delete it in the desctructor
verb Whether to write a notice about grid creation to stdout.
grid with support for simplicial mesh in 3d.


Member Typedef Documentation

typedef ALU3DSPACE ProjectVertex Dune::ALU3dGrid< elType, Comm >::ALUGridVertexProjectionType [inherited]

type of ALUGrid Vertex Projection Interface

type of collective communication object

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.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >.

typedef ALU3dGridCommunications< elType, Comm > Dune::ALU3dGrid< elType, Comm >::Communications [inherited]
template<int dim, int dimworld, class ct, class GridFamily>
typedef ct Dune::Grid< dim, dimworld, ct, GridFamily >::ctype [inherited]
typedef BaseType::ctype Dune::ALUSimplexGrid< 3, 3 >::ctype
typedef BaseType :: DuneBoundaryProjectionType Dune::ALUSimplexGrid< 3, 3 >::DuneBoundaryProjectionType

type of boundary projection

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef BaseType :: DuneBoundaryProjectionVector Dune::ALUSimplexGrid< 3, 3 >::DuneBoundaryProjectionVector

type of boundary projection

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef MakeableInterfaceObject<typename Traits::template Codim<2>::Entity> Dune::ALU3dGrid< elType, Comm >::EdgeObject [inherited]
typedef MakeableInterfaceObject<typename Traits::template Codim<0>::Entity> Dune::ALU3dGrid< elType, Comm >::EntityObject [inherited]
typedef MakeableInterfaceObject<typename Traits::template Codim<1>::Entity> Dune::ALU3dGrid< elType, Comm >::FaceObject [inherited]
typedef MakeableInterfaceObject< typename Traits::template Codim< 0 >::Geometry > Dune::ALU3dGrid< elType, Comm >::GeometryObject [protected, inherited]
typedef ALU3dImplTraits< elType, Comm >::GitterImplType Dune::ALU3dGrid< elType, Comm >::GitterImplType [protected, inherited]
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.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >.

typedef Traits :: GlobalIdSet Dune::ALUSimplexGrid< 3, 3 >::GlobalIdSet

Type of the global id set.

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef GridFamily::GlobalIdSetImp Dune::ALU3dGrid< elType, Comm >::GlobalIdSetImp [protected, inherited]

Type of the global id set.

typedef BaseType::GridFamily Dune::ALUSimplexGrid< 3, 3 >::GridFamily

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef ALUGridObjectFactory< ThisType > Dune::ALU3dGrid< elType, Comm >::GridObjectFactoryType [inherited]
typedef ALU3dGridHierarchicIndexSet< elType, Comm > Dune::ALU3dGrid< elType, Comm >::HierarchicIndexSet [inherited]

Type of the 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.

typedef BaseType::HierarchicIteratorImp Dune::ALUSimplexGrid< 3, 3 >::HierarchicIteratorImp

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef Partition< All_Partition >:: LeafGridView Dune::ALUSimplexGrid< 3, 3 >::LeafGridView
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.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >.

typedef GridFamily :: LeafIndexSetImp Dune::ALUSimplexGrid< 3, 3 >::LeafIndexSetImp

Type of the leaf index set, needed by data handle.

Reimplemented from Dune::ALU3dGrid< tetra >.

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::LeafIntersection, 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.

typedef Traits::Codim<0>::LeafIterator Dune::ALUSimplexGrid< 3, 3 >::LeafIterator

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef BaseType::LeafIteratorImp Dune::ALUSimplexGrid< 3, 3 >::LeafIteratorImp

a standard leaf iterator

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef Traits::Codim<0>::LeafIterator Dune::ALUSimplexGrid< 3, 3 >::LeafIteratorType

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef ALU3dGridLeafVertexList< Comm > Dune::ALU3dGrid< elType, Comm >::LeafVertexListType [protected, inherited]
typedef Partition< All_Partition >:: LevelGridView Dune::ALUSimplexGrid< 3, 3 >::LevelGridView
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.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >.

typedef GridFamily :: LevelIndexSetImp Dune::ALUSimplexGrid< 3, 3 >::LevelIndexSetImp

Type of the level index set, needed by data handle.

Reimplemented from Dune::ALU3dGrid< tetra >.

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.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >.

typedef Traits :: LocalIdSet Dune::ALUSimplexGrid< 3, 3 >::LocalIdSet

Type of the local id set.

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef BaseType::LocalIdSetImp Dune::ALUSimplexGrid< 3, 3 >::LocalIdSetImp

Type of the local id set.

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef BaseType::ObjectStreamType Dune::ALUSimplexGrid< 3, 3 >::ObjectStreamType

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef GenericReferenceElement< alu3d_ctype, dimension > Dune::ALU3dGrid< elType, Comm >::ReferenceElementType [inherited]

reference element type

typedef SingleTypeSizeCache<MyType> Dune::ALU3dGrid< elType, Comm >::SizeCacheType [protected, inherited]
typedef ALU3dGridFamily< elType, Comm > ::Traits Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::Traits [inherited]

The traits of this class.

Presents the typedefs as described in GridTraits.

typedef GridFamily::Traits Dune::ALUSimplexGrid< 3, 3 >::Traits

Reimplemented from Dune::ALU3dGrid< tetra >.

typedef ALU3dGridVertexList< Comm > Dune::ALU3dGrid< elType, Comm >::VertexListType [protected, inherited]
typedef MakeableInterfaceObject<typename Traits::template Codim<3>::Entity> Dune::ALU3dGrid< elType, Comm >::VertexObject [inherited]

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.

anonymous enum
Enumerator:
dimension 
dimensionworld 
anonymous enum [inherited]
anonymous enum [protected, inherited]

max number of levels

anonymous enum [protected, inherited]

element chunk for refinement

anonymous enum [protected, inherited]

upper estimate on number of elements that could be created when a new element is created

anonymous enum [protected, inherited]

Constructor & Destructor Documentation

Dune::ALUSimplexGrid< 3, 3 >::ALUSimplexGrid ( const std::string  macroName,
const MPICommunicatorType  mpiComm = BaseType::defaultCommunicator(),
const DuneBoundaryProjectionType bndProject = 0,
const DuneBoundaryProjectionVector bndVector = 0,
const bool  verb = true 
) [inline]

constructor for creating ALUSimplexGrid from given macro grid file

Parameters:
macroName filename for macro grid in ALUGrid tetra format
mpiComm MPI Communicator (when HAVE_MPI == 1 then mpiComm is of type MPI_Comm and the default value is MPI_COMM_WORLD)
bndProject global boundary projection pointer
bndVector pointer to vector holding boundary projection for each boundary segment. ALUGrid takes ownership of this pointer and will delete it in the desctructor
verb Whether to write a notice about grid creation to stdout.

References Dune::ALUGridParallelSerial().

Dune::ALUSimplexGrid< 3, 3 >::ALUSimplexGrid ( const MPICommunicatorType  mpiComm,
const DuneBoundaryProjectionType bndProject,
const DuneBoundaryProjectionVector bndVector,
const std::string  macroName,
const bool  verb = true 
) [inline]

constructor called from ALUGridFactory for creating ALUSimplexGrid from given macro grid file

Parameters:
mpiComm MPI Communicator (when HAVE_MPI == 1 then mpiComm is of type MPI_Comm)
bndProject global boundary projection pointer
bndVector pointer to vector holding boundary projection for each boundary segment
Note:
ALUGrid takes ownership of this pointer and will delete it in the desctructor
Parameters:
macroName filename from which ALUGrid is being generated
verb Whether to write a notice about grid creation to stdout.

References Dune::ALUGridParallelSerial().

Dune::ALUSimplexGrid< 3, 3 >::ALUSimplexGrid ( const MPICommunicatorType  mpiComm = BaseType::defaultCommunicator()  )  [inline]

constructor creating empty grid, empty string creates empty grid


Member Function Documentation

bool Dune::ALU3dGrid< elType, Comm >::adapt (  )  [inherited]

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:

bool Dune::ALU3dGrid< elType, Comm >::adapt ( AdaptDataHandleInterface< GridImp, DataHandle > &  handle  )  [inherited]

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:

Parameters:
handle handler for restriction and prolongation operations which is a Model of the AdaptDataHandleInterface class.
bool Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::adapt (  )  [inline, inherited]

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

Returns:
true if a least one entity was refined
  • Note: this default implementation always returns false so grid with no adaptation doesn't need to implement these methods

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

template<int dim, int dimworld, class ct, class GridFamily>
GridImp& Dune::Grid< dim, dimworld, ct, GridFamily >::asImp (  )  [inline, protected, inherited]

Barton-Nackman trick.

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

template<int dim, int dimworld, class ct, class GridFamily>
const GridImp& Dune::Grid< dim, dimworld, ct, GridFamily >::asImp (  )  const [inline, protected, inherited]

Barton-Nackman trick.

const DuneBoundaryProjectionType* Dune::ALU3dGrid< elType, Comm >::boundaryProjection ( const int  segmentIndex  )  const [inline, protected, inherited]

return boudanry projection for given segment Id

void Dune::ALU3dGrid< elType, Comm >::calcExtras (  )  [protected, inherited]

reset size and global size, update Level- and LeafIndexSet, if they exist

void Dune::ALU3dGrid< elType, Comm >::calcMaxLevel (  )  [protected, inherited]

calculate maxlevel

void Dune::ALU3dGrid< elType, Comm >::checkMacroGrid (  )  [protected, inherited]

check whether macro grid has the right element type

void Dune::ALU3dGrid< elType, Comm >::checkMacroGridFile ( const std::string  filename  )  [protected, inherited]

check whether macro grid format is of our type

const CollectiveCommunication& Dune::ALU3dGrid< elType, Comm >::comm (  )  const [inline, inherited]

return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication.

template<int dim, int dimworld, class ct, class GridFamily>
const CollectiveCommunication& Dune::Grid< dim, dimworld, ct, GridFamily >::comm (  )  const [inline, inherited]

return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >, Dune::OneDGrid, Dune::SGrid< dim, dimworld, _ctype >, Dune::UGGrid< dim >, Dune::SGrid< dim, dimworld >, and Dune::UGGrid< dimworld >.

Referenced by Dune::Grid< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::comm().

void Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir,
int  level 
) const [inline, inherited]

dummy communicate, doing nothing

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

void Dune::ALU3dGrid< elType, Comm >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const [inherited]

Communicate information on distributed entities on the leaf grid. Template parameter is a model of Dune::CommDataHandleIF.

void Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const [inline, inherited]

dummy communicate, doing nothing

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

void Dune::ALU3dGrid< elType, Comm >::communicate ( CommDataHandleIF< DataHandleImp, DataTypeImp > &  data,
InterfaceType  iftype,
CommunicationDirection  dir,
int  level 
) const [inherited]

Communicate information on distributed entities on a given level Template parameter is a model of Dune::CommDataHandleIF.

const Communications& Dune::ALU3dGrid< elType, Comm >::communications (  )  const [inline, protected, inherited]
virtual GitterImplType* Dune::ALU3dGrid< elType, Comm >::createALUGrid ( const std::string &  macroName  )  [inline, virtual, inherited]
static MPICommunicatorType Dune::ALU3dGrid< elType, Comm >::defaultCommunicator (  )  [inline, static, inherited]
virtual void Dune::ALU3dGrid< elType, Comm >::duneNotifyMacroGridChanges (  )  [inline, virtual, inherited]
Traits :: template Codim< EntitySeed :: codimension >:: EntityPointer Dune::ALU3dGrid< elType, Comm >::entityPointer ( const EntitySeed &  seed  )  const [inline, inherited]
Traits :: template Codim< EntitySeed :: codimension >:: EntityPointer Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::entityPointer ( const EntitySeed &  seed  )  const [inline, inherited]
Deprecated:
default implementation of generation of EntityPointer from EntitySeed. This has to be implemented by each grid
Deprecated:

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

const GridObjectFactoryType& Dune::ALU3dGrid< elType, Comm >::factory (  )  const [inline, protected, inherited]
const std::vector<GeometryType>& Dune::ALU3dGrid< elType, Comm >::geomTypes ( int  codim  )  const [inline, inherited]

deliver all geometry types used in this grid

virtual ALU3DSPACE Gitter::Geometric::BuilderIF& Dune::ALU3dGrid< elType, Comm >::getBuilder (  )  const [inline, virtual, inherited]
ALU3dGridItemListType& Dune::ALU3dGrid< elType, Comm >::getEdgeList ( int  level  )  const [inline, inherited]
ALU3dGridItemListType& Dune::ALU3dGrid< elType, Comm >::getGhostLeafList ( int  codim  )  const [inline, inherited]
ALU3dGridItemListType& Dune::ALU3dGrid< elType, Comm >::getGhostLevelList ( int  codim,
int  level 
) const [inline, inherited]
LeafVertexListType& Dune::ALU3dGrid< elType, Comm >::getLeafVertexList (  )  const [inline, inherited]
int Dune::ALU3dGrid< elType, Comm >::getLevelOfLeafVertex ( const typename ALU3dImplTraits< elType, Comm >::VertexType &  vertex  )  const [inline, inherited]
int Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::getMark ( const typename Traits::template Codim< 0 >::Entity e  )  const [inline, inherited]

returns adaptation mark for given entity, i.e. here the default implementation returns 0.

Parameters:
[in] e Entity for which adaptation mark should be determined
Returns:
int adaptation mark, here the default value 0 is returned
template<int dim, int dimworld, class ct, class GridFamily>
int Dune::Grid< dim, dimworld, ct, GridFamily >::getMark ( const typename Codim< 0 >::Entity e  )  const [inline, inherited]

returns adaptation mark for given entity

Parameters:
[in] e Entity for which adaptation mark should be determined
Returns:
int adaptation mark currently set for given Entity e
int Dune::ALU3dGrid< elType, Comm >::getMark ( const typename Traits::template Codim< 0 >::Entity e  )  const [inherited]

returns adaptation mark for given entity

Parameters:
[in] e Entity for which adaptation mark should be determined
Returns:
int adaptation mark currently set for given Entity e
static ReturnImplementationType<InterfaceType>::ImplementationType& Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::getRealImplementation ( InterfaceType i  )  [inline, static, protected, inherited]
const BaseType :: template ReturnImplementationType< IntersectionType >:: ImplementationType& Dune::ALU3dGrid< elType, Comm >::getRealIntersection ( const IntersectionType &  intersection  )  const [inline, inherited]
const BaseType :: template ReturnImplementationType< IntersectionInterfaceType >:: ImplementationType& Dune::ALU3dGrid< elType, Comm >::getRealIntersectionIterator ( const IntersectionInterfaceType &  it  )  const [inline, inherited]
VertexListType& Dune::ALU3dGrid< elType, Comm >::getVertexList ( int  level  )  const [inline, inherited]
int Dune::ALU3dGrid< elType, Comm >::ghostSize ( int  codim  )  const [inherited]

ghostSize is one for codim 0 and zero otherwise for this grid

int Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::ghostSize ( int  level,
int  codim 
) const [inline, inherited]

ghostSize is zero by default

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

int Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::ghostSize ( int  codim  )  const [inline, inherited]

ghostSize is zero by default

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

int Dune::ALU3dGrid< elType, Comm >::ghostSize ( int  level,
int  codim 
) const [inherited]

ghostSize is one for codim 0 and zero otherwise for this grid

int Dune::ALU3dGrid< elType, Comm >::global_size ( int  cd  )  const [inherited]

number of grid entities on all levels for given codim

template<int dim, int dimworld, class ct, class GridFamily>
const GlobalIdSet& Dune::Grid< dim, dimworld, ct, GridFamily >::globalIdSet (  )  const [inline, inherited]
const GlobalIdSet& Dune::ALU3dGrid< elType, Comm >::globalIdSet (  )  const [inline, inherited]

get global id set of grid

void Dune::ALU3dGrid< elType, Comm >::globalRefine ( int  refCount  )  [inherited]

uses the interface, mark on entity and refineLocal

void Dune::ALU3dGrid< elType, Comm >::globalRefine ( int  refCount,
AdaptDataHandleInterface< GridImp, DataHandle > &  handle 
) [inherited]
template<int dim, int dimworld, class ct, class GridFamily>
void Dune::Grid< dim, dimworld, ct, GridFamily >::globalRefine ( int  refCount  )  [inline, inherited]

Refine the grid refCount times using the default refinement rule.

This behaves like marking all elements for refinement and then calling preAdapt, adapt and postAdapt. The state after globalRefine is comparable to the state after postAdapt.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >, Dune::OneDGrid, Dune::SGrid< dim, dimworld, _ctype >, Dune::UGGrid< dim >, Dune::SGrid< dim, dimworld >, and Dune::UGGrid< dimworld >.

Referenced by Dune::Grid< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::globalRefine().

const HierarchicIndexSet& Dune::ALU3dGrid< elType, Comm >::hierarchicIndexSet (  )  const [inline, inherited]
int Dune::ALU3dGrid< elType, Comm >::hierSetSize ( int  cd  )  const [inherited]
Traits::template Codim<cd>:: template Partition<All_Partition>::LevelIterator Dune::ALU3dGrid< elType, Comm >::lbegin ( int  level  )  const [inherited]

Iterator to first entity of given codim on level.

Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::ALU3dGrid< elType, Comm >::lbegin ( int  level  )  const [inherited]

Iterator to first entity of given codim on level.

template<int dim, int dimworld, class ct, class GridFamily>
template<int cd, PartitionIteratorType pitype>
Codim<cd>::template Partition<pitype>::LevelIterator Dune::Grid< dim, dimworld, ct, GridFamily >::lbegin ( int  level  )  const [inline, inherited]
template<int dim, int dimworld, class ct, class GridFamily>
template<int cd, PartitionIteratorType pitype>
Codim<cd>::template Partition<pitype>::LeafIterator Dune::Grid< dim, dimworld, ct, GridFamily >::leafbegin (  )  const [inline, inherited]
Traits::template Codim<codim>::template Partition<pitype>::LeafIterator Dune::ALU3dGrid< elType, Comm >::leafbegin (  )  const [inherited]

General definiton for a leaf iterator.

Traits::template Codim<codim>::LeafIterator Dune::ALU3dGrid< elType, Comm >::leafbegin (  )  const [inherited]

General definiton for a leaf iterator.

Traits::template Codim<codim>::template Partition<pitype>::LeafIterator Dune::ALU3dGrid< elType, Comm >::leafend (  )  const [inherited]

General definition for an end iterator on leaf level.

Traits::template Codim<codim>::LeafIterator Dune::ALU3dGrid< elType, Comm >::leafend (  )  const [inherited]

General definition for an end iterator on leaf level.

template<int dim, int dimworld, class ct, class GridFamily>
template<int cd, PartitionIteratorType pitype>
Codim<cd>::template Partition<pitype>::LeafIterator Dune::Grid< dim, dimworld, ct, GridFamily >::leafend (  )  const [inline, inherited]
template<int dim, int dimworld, class ct, class GridFamily>
const LeafIndexSet& Dune::Grid< dim, dimworld, ct, GridFamily >::leafIndexSet (  )  const [inline, inherited]
const Traits :: LeafIndexSet& Dune::ALU3dGrid< elType, Comm >::leafIndexSet (  )  const [inherited]

get leaf index set of the grid

template<PartitionIteratorType pitype>
Partition< pitype >::LeafGridView Dune::ALUSimplexGrid< 3, 3 >::leafView (  )  const [inline]
LeafGridView Dune::ALUSimplexGrid< 3, 3 >::leafView (  )  const [inline]
Traits::template Partition<pitype>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::leafView (  )  const [inline, inherited]

View for the leaf grid.

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::ALU3dGrid< elType, Comm >::lend ( int  level  )  const [inherited]

one past the end on this level

template<int dim, int dimworld, class ct, class GridFamily>
template<int cd, PartitionIteratorType pitype>
Codim<cd>::template Partition<pitype>::LevelIterator Dune::Grid< dim, dimworld, ct, GridFamily >::lend ( int  level  )  const [inline, inherited]
Traits::template Codim<cd>:: template Partition<All_Partition>::LevelIterator Dune::ALU3dGrid< elType, Comm >::lend ( int  level  )  const [inherited]

one past the end on this level

const Traits :: LevelIndexSet& Dune::ALU3dGrid< elType, Comm >::levelIndexSet ( int  level  )  const [inherited]

get level index set of the grid

template<int dim, int dimworld, class ct, class GridFamily>
const LevelIndexSet& Dune::Grid< dim, dimworld, ct, GridFamily >::levelIndexSet ( int  level  )  const [inline, inherited]
template<PartitionIteratorType pitype>
Partition< pitype >::LevelGridView Dune::ALUSimplexGrid< 3, 3 >::levelView ( int  level  )  const [inline]
Traits::template Partition<pitype>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::levelView ( int  level  )  const [inline, inherited]

View for a grid level.

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

LevelGridView Dune::ALUSimplexGrid< 3, 3 >::levelView ( int  level  )  const [inline]
bool Dune::ALU3dGrid< elType, Comm >::loadBalance (  )  [inherited]

Calculates load of each process and repartition the grid if neccessary. For parameters of the load balancing process see the README file of the ALUGrid package.

bool Dune::ALU3dGrid< elType, Comm >::loadBalance ( DataHandle &  data  )  [inherited]

Calculates load of each process and repartition the grid if neccessary. For parameters of the load balancing process see the README file of the ALUGrid package.

Parameters:
data the data handler class that must implement three methods:

          // calls data inline on macro element. From there the data of
          // all children can be written to the message buffer. 
          // MessageBufferImp implements the MessageBufferIF interface. 
          template<class MessageBufferImp>
          void inlineData ( MessageBufferImp& buff, Dune::Entity<0> & e);
          
          // calls data xtract on macro element. From there the data of
          // all children can be restored from the message buffer. 
          // numChildren is the number of all children underneath the
          // macro element e. 
          // MessageBufferImp implements the MessageBufferIF interface. 
          template<class MessageBufferImp>
          void xtractData ( MessageBufferImp& buff, Dune::Entity<0> & e, size_t numChildren );

          // This method is called at the end of the load balancing process
          // before adaptation markers are removed. Here the user can apply
          // a data compression or other features. This method can be
          // empty if nothing should be done.
          void compress ();
bool Dune::ALU3dGrid< elType, Comm >::loadBalance ( CommDataHandleIF< DataHandleImpl, Data > &  dataHandle  )  [inline, inherited]
bool Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::loadBalance (  )  [inline, inherited]

default implementation of load balance does nothing and returns false

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

bool Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::loadBalance ( DataHandle &  data  )  [inline, inherited]

default implementation of load balance does nothing and returns false

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

const LocalIdSet& Dune::ALU3dGrid< elType, Comm >::localIdSet (  )  const [inline, inherited]

get global id set of grid

template<int dim, int dimworld, class ct, class GridFamily>
const LocalIdSet& Dune::Grid< dim, dimworld, ct, GridFamily >::localIdSet (  )  const [inline, inherited]
bool Dune::ALU3dGrid< elType, Comm >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity e 
) [inherited]

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

Parameters:
[in] refCount Number of subdivisions that should be applied. Negative value means coarsening.
[in] e Entity that should be marked
Returns:
true if Entity was marked, false otherwise.
bool Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::mark ( int  refCount,
const typename Traits::template Codim< 0 >::Entity e 
) [inline, inherited]

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

Parameters:
[in] refCount Number of subdivisions that should be applied. Negative value means coarsening.
[in] e Entity to Entity that should be refined
Returns:
true if Entity was marked, false otherwise.
Note:
  • default implementation is: return false; for grids with no adaptation.
  • for the grid programmer: this method is implemented as a template method, because the Entity type is not defined when the class is instantiated You won't need this trick in the implementation. In your implementation you should use it as
               bool mark( int refCount,
                          typename Traits::template Codim<0>::Entity & e ).
    
    This template method will vanish due to the inheritance rules.
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 
) [inline, inherited]

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

Parameters:
[in] refCount Number of subdivisions that should be applied. Negative value means coarsening.
[in] e Entity that should be marked
Returns:
true if Entity was marked, false otherwise.
int Dune::ALU3dGrid< elType, Comm >::maxLevel (  )  const [inherited]

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

GitterImplType& Dune::ALU3dGrid< elType, Comm >::myGrid (  )  const [inherited]
static std::string Dune::ALU3dGrid< elType, Comm >::name (  )  [inline, static, inherited]

for grid identification

int Dune::ALU3dGrid< elType, Comm >::nlinks (  )  const [inline, inherited]
size_t Dune::ALU3dGrid< elType, Comm >::numBoundarySegments (  )  const [inherited]

number of boundary segments

template<int dim, int dimworld, class ct, class GridFamily>
size_t Dune::Grid< dim, dimworld, ct, GridFamily >::numBoundarySegments (  )  const [inline, inherited]

returns the number of boundary segments within the macro grid

Returns:
number of boundary segments within the macro grid

Reimplemented in Dune::AlbertaGrid< dim, dimworld >, Dune::OneDGrid, Dune::SGrid< dim, dimworld, _ctype >, Dune::UGGrid< dim >, Dune::SGrid< dim, dimworld >, and Dune::UGGrid< dimworld >.

Referenced by Dune::Grid< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::numBoundarySegments().

int Dune::ALU3dGrid< elType, Comm >::overlapSize ( int  codim  )  const [inline, inherited]

overlapSize is zero for this grid

int Dune::ALU3dGrid< elType, Comm >::overlapSize ( int  level,
int  codim 
) const [inline, inherited]

overlapSize is zero for this grid

int Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::overlapSize ( int  codim  )  const [inline, inherited]

overlapSize is zero by default

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

int Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::overlapSize ( int  level,
int  codim 
) const [inline, inherited]

overlapSize is zero by default

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

void Dune::ALU3dGrid< elType, Comm >::postAdapt (  )  [inherited]

clear all entity new markers

void Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::postAdapt (  )  [inline, inherited]

clean up some markers

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

bool Dune::ALU3dGrid< elType, Comm >::preAdapt (  )  [inherited]

returns if a least one entity was marked for coarsening

bool Dune::GridDefaultImplementation< dim, dimworld, alu3d_ctype , ALU3dGridFamily< elType, Comm > >::preAdapt (  )  [inline, inherited]

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

Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.

bool Dune::ALU3dGrid< elType, Comm >::readGrid ( const std::string  filename,
alu3d_ctype time 
) [inherited]

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

void Dune::ALU3dGrid< elType, Comm >::recalcGlobalSize (  )  [protected, inherited]

make grid walkthrough and calc global size

const ReferenceElementType& Dune::ALU3dGrid< elType, Comm >::referenceElement (  )  const [inline, inherited]

return reference to Dune reference element according to elType

void Dune::ALU3dGrid< elType, Comm >::setMaxLevel ( int  mxl  )  [inherited]
int Dune::ALU3dGrid< elType, Comm >::size ( GeometryType  type  )  const [inherited]

number of leaf entities per geometry type in this process

template<int dim, int dimworld, class ct, class GridFamily>
int Dune::Grid< dim, dimworld, ct, GridFamily >::size ( int  level,
int  codim 
) const [inline, inherited]
template<int dim, int dimworld, class ct, class GridFamily>
int Dune::Grid< dim, dimworld, ct, GridFamily >::size ( int  level,
GeometryType  type 
) const [inline, inherited]

Return number of entities per level and geometry type in this process.

Reimplemented in Dune::AlbertaGrid< dim, dimworld >, Dune::OneDGrid, Dune::SGrid< dim, dimworld, _ctype >, Dune::UGGrid< dim >, Dune::SGrid< dim, dimworld >, and Dune::UGGrid< dimworld >.

template<int dim, int dimworld, class ct, class GridFamily>
int Dune::Grid< dim, dimworld, ct, GridFamily >::size ( GeometryType  type  )  const [inline, inherited]
int Dune::ALU3dGrid< elType, Comm >::size ( int  level,
int  cd 
) const [inherited]

number of grid entities per level and codim

int Dune::ALU3dGrid< elType, Comm >::size ( int  codim  )  const [inherited]

number of leaf entities per codim in this process

template<int dim, int dimworld, class ct, class GridFamily>
int Dune::Grid< dim, dimworld, ct, GridFamily >::size ( int  codim  )  const [inline, inherited]
int Dune::ALU3dGrid< elType, Comm >::size ( int  level,
GeometryType  type 
) const [inherited]

number of entities per level and geometry type in this process

void Dune::ALU3dGrid< elType, Comm >::updateStatus (  )  [inherited]
ALUGridVertexProjectionType* Dune::ALU3dGrid< elType, Comm >::vertexProjection (  )  [inline, inherited]
bool Dune::ALU3dGrid< elType, Comm >::writeGrid ( const std::string  filename,
alu3d_ctype  time 
) const [inherited]

write Grid to file in specified FileFormatType

bool Dune::ALU3dGrid< elType, Comm >::writeGrid_Ascii ( const std::string  filename,
alu3d_ctype  time,
bool  scientific = false 
) const [inherited]

write leaf grid in macro grid format to ascii file

bool Dune::ALU3dGrid< elType, Comm >::writeGrid_Xdr ( const std::string  filename,
alu3d_ctype  time 
) const [inherited]
bool Dune::ALU3dGrid< elType, Comm >::writeMacroGrid ( const std::string  path,
const std::string  filename 
) const [inherited]

write macro grid in ALUGrid macro format to path/filename.rank


Friends And Related Function Documentation

friend class ALU3dGridFactory [friend]
friend class ALUGridBoundaryProjection< ThisType, alu3d_ctype > [friend, inherited]
friend class ALULocalGeometryStorage< const ThisType, GeometryObject, 8 > [friend, inherited]
friend class Conversion< ALUSimplexGrid< dimension, dimensionworld >, HasHierarchicIndexSet > [friend]
friend class Conversion< ALUSimplexGrid< dimension, dimensionworld >, HasObjectStream > [friend]
friend class Conversion< const ALUSimplexGrid< dimension, dimensionworld >, HasHierarchicIndexSet > [friend]
friend class Conversion< const ALUSimplexGrid< dimension, dimensionworld >, HasObjectStream > [friend]
friend class IntersectionIteratorWrapper< const ThisType, LeafIntersectionIteratorImp > [friend, inherited]
friend class IntersectionIteratorWrapper< const ThisType, LevelIntersectionIteratorImp > [friend, inherited]
friend class LeafIntersectionIteratorWrapper< const ThisType > [friend, inherited]
friend class LevelIntersectionIteratorWrapper< const ThisType > [friend, inherited]

Member Data Documentation

const DuneBoundaryProjectionType* Dune::ALU3dGrid< elType, Comm >::bndPrj_ [protected, inherited]
const DuneBoundaryProjectionVector* Dune::ALU3dGrid< elType, Comm >::bndVec_ [protected, inherited]
int Dune::ALU3dGrid< elType, Comm >::coarsenMarked_ [mutable, protected, inherited]
Communications* Dune::ALU3dGrid< elType, Comm >::communications_ [protected, inherited]
const ALU3dGridElementType Dune::ALU3dGrid< elType, Comm >::elementType [static, inherited]
GridObjectFactoryType Dune::ALU3dGrid< elType, Comm >::factory_ [protected, inherited]
std::vector< std::vector<GeometryType> > Dune::ALU3dGrid< elType, Comm >::geomTypes_ [protected, inherited]
ALU3dGridItemListType Dune::ALU3dGrid< elType, Comm >::ghostLeafList_[dimension] [mutable, protected, inherited]
ALU3dGridItemListType Dune::ALU3dGrid< elType, Comm >::ghostLevelList_[dimension][MAXL] [mutable, protected, inherited]
GlobalIdSetImp* Dune::ALU3dGrid< elType, Comm >::globalIdSet_ [mutable, protected, inherited]
HierarchicIndexSet Dune::ALU3dGrid< elType, Comm >::hIndexSet_ [protected, inherited]
LeafIndexSetImp* Dune::ALU3dGrid< elType, Comm >::leafIndexSet_ [mutable, protected, inherited]
LeafVertexListType Dune::ALU3dGrid< elType, Comm >::leafVertexList_ [mutable, protected, inherited]
ALU3dGridItemListType Dune::ALU3dGrid< elType, Comm >::levelEdgeList_[MAXL] [mutable, protected, inherited]
std::vector< LevelIndexSetImp * > Dune::ALU3dGrid< elType, Comm >::levelIndexVec_ [mutable, protected, inherited]
LocalIdSetImp Dune::ALU3dGrid< elType, Comm >::localIdSet_ [protected, inherited]
bool Dune::ALU3dGrid< elType, Comm >::lockPostAdapt_ [protected, inherited]
int Dune::ALU3dGrid< elType, Comm >::maxlevel_ [protected, inherited]
GitterImplType* Dune::ALU3dGrid< elType, Comm >::mygrid_ [mutable, protected, inherited]
const ReferenceElementType& Dune::ALU3dGrid< elType, Comm >::referenceElement_ [protected, inherited]
int Dune::ALU3dGrid< elType, Comm >::refineMarked_ [mutable, protected, inherited]
SizeCacheType* Dune::ALU3dGrid< elType, Comm >::sizeCache_ [protected, inherited]
VertexListType Dune::ALU3dGrid< elType, Comm >::vertexList_[MAXL] [mutable, protected, inherited]
ALUGridBoundaryProjectionType* Dune::ALU3dGrid< elType, Comm >::vertexProjection_ [protected, inherited]

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].