dune-grid
2.1.1
|
Backend grid for hypercube refinement. More...
Public Types | |
typedef RefinementGrid< dimension > | This |
Know yourself. | |
typedef YaspGrid< dimension > | BaseType |
Know your base class. | |
enum | |
maximum number of levels allowed More... | |
typedef yaspgrid_ctype | ctype |
define type used for coordinates in grid module | |
typedef bigunsignedint< dim *yaspgrid_dim_bits+yaspgrid_level_bits+yaspgrid_codim_bits > | PersistentIndexType |
typedef YaspGridFamily< dim, dim > | GridFamily |
the GridFamily of this grid | |
typedef YaspGridFamily< dim, dim >::Traits | Traits |
The traits of this class. | |
typedef YaspLevelIndexSet < YaspGrid< dim > > | LevelIndexSetType |
typedef YaspLeafIndexSet < YaspGrid< dim > > | LeafIndexSetType |
typedef YaspGlobalIdSet < YaspGrid< dim > > | GlobalIdSetType |
typedef MultiYGrid< dim, ctype > | YMG |
shorthand for base class data types | |
typedef MultiYGrid< dim, ctype > ::YGridLevelIterator | YGLI |
typedef SubYGrid< dim, ctype > ::TransformingSubIterator | TSI |
typedef MultiYGrid< dim, ctype > ::Intersection | IS |
typedef std::deque< IS > ::const_iterator | ISIT |
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. | |
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 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 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. | |
Public Member Functions | |
void | refineTo (int level) |
Make sure the grid as at least the given refinement level. | |
int | maxLevel () const |
void | globalRefine (int refCount) |
refine the grid refCount times. What about overlap? | |
void | refineOptions (bool keepPhysicalOverlap) |
set options for refinement | |
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 |
returns adaptation mark for given entity | |
bool | adapt () |
map adapt to global refine | |
bool | preAdapt () |
returns true, if the grid will be coarsened | |
void | postAdapt () |
clean up some markers | |
Traits::template Codim< cd > ::template Partition< pitype > ::LevelIterator | lbegin (int level) const |
one past the end on this level | |
Traits::template Codim< cd > ::template Partition < All_Partition > ::LevelIterator | lbegin (int level) const |
version without second template parameter for convenience | |
Traits::template Codim< cd > ::template Partition< pitype > ::LevelIterator | lend (int level) const |
Iterator to one past the last entity of given codim on level for partition type. | |
Traits::template Codim< cd > ::template Partition < All_Partition > ::LevelIterator | lend (int level) const |
version without second template parameter for convenience | |
Traits::template Codim< cd > ::template Partition< pitype > ::LeafIterator | leafbegin () const |
return LeafIterator which points to the first entity in maxLevel | |
Traits::template Codim< cd > ::template Partition < All_Partition > ::LeafIterator | leafbegin () const |
return LeafIterator which points to the first entity in maxLevel | |
Traits::template Codim< cd > ::template Partition< pitype > ::LeafIterator | leafend () const |
return LeafIterator which points behind the last entity in maxLevel | |
Traits::template Codim< cd > ::template Partition < All_Partition > ::LeafIterator | leafend () const |
return LeafIterator which points behind the last entity in maxLevel | |
int | overlapSize (int level, int codim) const |
return size (= distance in graph) of overlap region | |
int | overlapSize (int codim) const |
return size (= distance in graph) of overlap region | |
int | ghostSize (int level, int codim) const |
return size (= distance in graph) of ghost region | |
int | ghostSize (int codim) const |
return size (= distance in graph) of ghost region | |
int | size (int level, int codim) const |
number of entities per level and codim in this process | |
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 |
returns the number of boundary segments within the macro grid | |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const |
void | communicateCodim (DataHandle &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
const Traits::GlobalIdSet & | globalIdSet () const |
return const reference to the grids global id set | |
const Traits::LocalIdSet & | localIdSet () const |
return const reference to the grids local id set | |
const Traits::LevelIndexSet & | levelIndexSet (int level) const |
return const reference to the grids level index set for level level | |
const Traits::LeafIndexSet & | leafIndexSet () const |
return const reference to the grids leaf index set | |
const CollectiveCommunication < MPI_Comm > & | comm () const |
return a collective communication object | |
YaspIntersectionIterator < const YaspGrid< dim > > & | getRealIntersectionIterator (typename Traits::LevelIntersectionIterator &it) |
const YaspIntersectionIterator < const YaspGrid< dim > > & | getRealIntersectionIterator (const typename Traits::LevelIntersectionIterator &it) const |
Traits::template Partition < pitype >::LevelGridView | levelView (int level) const |
View for a grid level. | |
Traits::template Partition < All_Partition > ::LevelGridView | levelView (int level) const |
View for a grid level for All_Partition. | |
Traits::template Partition < pitype >::LeafGridView | leafView () const |
View for the leaf grid. | |
Traits::template Partition < All_Partition > ::LeafGridView | leafView () const |
View for the leaf grid for All_Partition. | |
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 | |
Traits::template Codim < EntitySeed::codimension > ::EntityPointer | entityPointer (const EntitySeed &seed) const |
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. | |
int | getMark (const typename Codim< 0 >::Entity &e) const |
returns adaptation mark for given entity | |
Static Public Member Functions | |
static This & | instance () |
Return the singleton instance. | |
Protected Member Functions | |
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 | |
Friends | |
class | Dune::YaspLevelIndexSet< const Dune::YaspGrid< dim > > |
class | Dune::YaspLeafIndexSet< const Dune::YaspGrid< dim > > |
class | Dune::YaspGlobalIdSet< const Dune::YaspGrid< dim > > |
class | Dune::YaspIntersectionIterator< const Dune::YaspGrid< dim > > |
class | Dune::YaspIntersection< const Dune::YaspGrid< dim > > |
class | Dune::YaspEntity< 0, dim, const Dune::YaspGrid< dim > > |
Backend grid for hypercube refinement.
dimension | Dimension of the refined hypercube |
This grid is used as backend by RefinementImp. It simply wraps a YaspGrid to make it a singleton. We have to use YaspGrids default CoordType here instead of the one from the refined hypercube, because I know of no way to set the CoordType used by YaspGrid.
typedef YaspGrid<dimension> Dune::RefinementImp::HCube::RefinementGrid< dimension >::BaseType |
Know your base class.
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::ALU3dGrid< elType, Comm >, Dune::ALU3dGrid< tetra >, Dune::ALU3dGrid< hexa >, and Dune::AlbertaGrid< dim, dimworld >.
typedef yaspgrid_ctype Dune::YaspGrid< dim >::ctype [inherited] |
define type used for coordinates in grid module
Reimplemented from Dune::Grid< dim, dimworld, ct, 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::ALUConformGrid< 2, dimw >, Dune::ALU3dGrid< elType, Comm >, Dune::ALU3dGrid< tetra >, Dune::ALU3dGrid< hexa >, Dune::ALUSimplexGrid< 3, 3 >, Dune::ALU2dGrid< dim, dimworld, eltype >, Dune::ALU2dGrid< 2, dimw, ALU2DSPACE triangle >, Dune::ALU2dGrid< 2, dimw, ALU2DSPACE quadrilateral >, Dune::ALUSimplexGrid< 2, dimw >, Dune::AlbertaGrid< dim, dimworld >, Dune::ALUCubeGrid< 3, 3 >, and Dune::ALUCubeGrid< 2, dimw >.
typedef YaspGlobalIdSet<YaspGrid<dim> > Dune::YaspGrid< dim >::GlobalIdSetType [inherited] |
typedef YaspGridFamily<dim,dim> Dune::YaspGrid< dim >::GridFamily [inherited] |
the GridFamily of this grid
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 MultiYGrid<dim,ctype>::Intersection Dune::YaspGrid< dim >::IS [inherited] |
typedef std::deque<IS>::const_iterator Dune::YaspGrid< dim >::ISIT [inherited] |
typedef Partition< All_Partition >:: LeafGridView Dune::Grid< dim, dimworld, ct, GridFamily >::LeafGridView [inherited] |
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 YaspLeafIndexSet<YaspGrid<dim> > Dune::YaspGrid< dim >::LeafIndexSetType [inherited] |
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.
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 Partition< All_Partition >:: LevelGridView Dune::Grid< dim, dimworld, ct, GridFamily >::LevelGridView [inherited] |
View types for All_Partition.
Reimplemented in Dune::ALUConformGrid< 2, dimw >, Dune::ALUSimplexGrid< 3, 3 >, Dune::ALUSimplexGrid< 2, dimw >, Dune::ALUCubeGrid< 3, 3 >, and Dune::ALUCubeGrid< 2, dimw >.
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 YaspLevelIndexSet<YaspGrid<dim> > Dune::YaspGrid< dim >::LevelIndexSetType [inherited] |
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.
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.
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::ALUConformGrid< 2, dimw >, Dune::ALU3dGrid< elType, Comm >, Dune::ALU3dGrid< tetra >, Dune::ALU3dGrid< hexa >, Dune::ALUSimplexGrid< 3, 3 >, Dune::ALU2dGrid< dim, dimworld, eltype >, Dune::ALU2dGrid< 2, dimw, ALU2DSPACE triangle >, Dune::ALU2dGrid< 2, dimw, ALU2DSPACE quadrilateral >, Dune::ALUSimplexGrid< 2, dimw >, Dune::AlbertaGrid< dim, dimworld >, Dune::ALUCubeGrid< 3, 3 >, and Dune::ALUCubeGrid< 2, dimw >.
typedef bigunsignedint<dim*yaspgrid_dim_bits+yaspgrid_level_bits+yaspgrid_codim_bits> Dune::YaspGrid< dim >::PersistentIndexType [inherited] |
typedef RefinementGrid<dimension> Dune::RefinementImp::HCube::RefinementGrid< dimension >::This |
Know yourself.
typedef YaspGridFamily<dim,dim>::Traits Dune::YaspGrid< dim >::Traits [inherited] |
The traits of this class.
Presents the typedefs as described in GridTraits.
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
typedef SubYGrid<dim,ctype>::TransformingSubIterator Dune::YaspGrid< dim >::TSI [inherited] |
typedef MultiYGrid<dim,ctype>::YGridLevelIterator Dune::YaspGrid< dim >::YGLI [inherited] |
typedef MultiYGrid<dim,ctype> Dune::YaspGrid< dim >::YMG [inherited] |
shorthand for base class data types
anonymous enum [inherited] |
anonymous enum [inherited] |
anonymous enum [inherited] |
maximum number of levels allowed
bool Dune::YaspGrid< dim >::adapt | ( | ) | [inline, inherited] |
map adapt to global refine
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
References Dune::YaspGrid< dim >::globalRefine().
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::Grid< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::leafView(), Dune::GridDefaultImplementation< 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::Grid< dim, dimworld, _ctype, SGridFamily< dim, dimworld, _ctype > >::levelView(), Dune::GridDefaultImplementation< 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().
const GridImp& Dune::Grid< dim, dimworld, ct, GridFamily >::asImp | ( | ) | const [inline, protected, inherited] |
Barton-Nackman trick.
const CollectiveCommunication<MPI_Comm>& Dune::YaspGrid< dim >::comm | ( | ) | const [inline, inherited] |
return a collective communication object
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
void Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::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::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::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::YaspGrid< dim >::communicate | ( | CommDataHandleIF< DataHandleImp, DataType > & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir, | ||
int | level | ||
) | const [inline, inherited] |
The new communication interface
communicate objects for all codims on a given level
References Dune::YaspGrid< dim >::comm().
void Dune::YaspGrid< dim >::communicate | ( | CommDataHandleIF< DataHandleImp, DataType > & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir | ||
) | const [inline, inherited] |
The new communication interface
communicate objects for all codims on the leaf grid
References Dune::YaspGrid< dim >::comm(), and Dune::YaspGrid< dim >::maxLevel().
void Dune::YaspGrid< dim >::communicateCodim | ( | DataHandle & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir, | ||
int | level | ||
) | const [inline, inherited] |
The new communication interface
communicate objects for one codim
References Dune::All_All_Interface, Dune::BackwardCommunication, Dune::InteriorBorder_All_Interface, Dune::InteriorBorder_InteriorBorder_Interface, Dune::Overlap_All_Interface, and Dune::Overlap_OverlapFront_Interface.
Traits :: template Codim< EntitySeed :: codimension >:: EntityPointer Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::entityPointer | ( | const EntitySeed & | seed | ) | const [inline, inherited] |
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::Grid< dim, dimworld, ct, GridFamily >::getMark | ( | const typename Codim< 0 >::Entity & | e | ) | const [inline, inherited] |
int Dune::YaspGrid< dim >::getMark | ( | const typename Traits::template Codim< 0 >::Entity & | e | ) | const [inline, inherited] |
returns adaptation mark for given entity
[in] | e | Entity for which adaptation mark should be determined |
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
References Dune::YaspGrid< dim >::maxLevel().
static ReturnImplementationType<InterfaceType>::ImplementationType& Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::getRealImplementation | ( | InterfaceType & | i | ) | [inline, static, protected, inherited] |
return real implementation of interface class
Referenced by Dune::YaspGrid< dimension >::getRealIntersectionIterator().
YaspIntersectionIterator<const YaspGrid<dim> >& Dune::YaspGrid< dim >::getRealIntersectionIterator | ( | typename Traits::LevelIntersectionIterator & | it | ) | [inline, inherited] |
const YaspIntersectionIterator<const YaspGrid<dim> >& Dune::YaspGrid< dim >::getRealIntersectionIterator | ( | const typename Traits::LevelIntersectionIterator & | it | ) | const [inline, inherited] |
int Dune::YaspGrid< dim >::ghostSize | ( | int | level, |
int | codim | ||
) | const [inline, inherited] |
return size (= distance in graph) of ghost region
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
int Dune::YaspGrid< dim >::ghostSize | ( | int | codim | ) | const [inline, inherited] |
return size (= distance in graph) of ghost region
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
const Traits::GlobalIdSet& Dune::YaspGrid< dim >::globalIdSet | ( | ) | const [inline, inherited] |
return const reference to the grids global id set
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
void Dune::YaspGrid< dim >::globalRefine | ( | int | refCount | ) | [inline, inherited] |
refine the grid refCount times. What about overlap?
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
RefinementGrid< dimension > & Dune::RefinementImp::HCube::RefinementGrid< dimension >::instance | ( | ) | [static] |
Return the singleton instance.
Return the singleton instance of the RefinementGrid. Create it if neccessary.
Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::YaspGrid< dim >::lbegin | ( | int | level | ) | const [inline, inherited] |
one past the end on this level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator Dune::YaspGrid< dim >::lbegin | ( | int | level | ) | const [inline, inherited] |
version without second template parameter for convenience
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<cd>::template Partition<pitype>::LeafIterator Dune::YaspGrid< dim >::leafbegin | ( | ) | const [inline, inherited] |
return LeafIterator which points to the first entity in maxLevel
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator Dune::YaspGrid< dim >::leafbegin | ( | ) | const [inline, inherited] |
return LeafIterator which points to the first entity in maxLevel
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
Traits::template Codim<cd>::template Partition<pitype>::LeafIterator Dune::YaspGrid< dim >::leafend | ( | ) | const [inline, inherited] |
return LeafIterator which points behind the last entity in maxLevel
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
Traits::template Codim<cd>::template Partition<All_Partition>::LeafIterator Dune::YaspGrid< dim >::leafend | ( | ) | const [inline, inherited] |
return LeafIterator which points behind the last entity in maxLevel
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
const Traits::LeafIndexSet& Dune::YaspGrid< dim >::leafIndexSet | ( | ) | const [inline, inherited] |
return const reference to the grids leaf index set
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Partition<pitype>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::leafView | ( | ) | const [inline, inherited] |
View for the leaf grid.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Partition<All_Partition>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::leafView | ( | ) | const [inline, inherited] |
View for the leaf grid for All_Partition.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<cd>::template Partition<pitype>::LevelIterator Dune::YaspGrid< dim >::lend | ( | int | level | ) | const [inline, inherited] |
Iterator to one past the last entity of given codim on level for partition type.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<cd>::template Partition<All_Partition>::LevelIterator Dune::YaspGrid< dim >::lend | ( | int | level | ) | const [inline, inherited] |
version without second template parameter for convenience
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
const Traits::LevelIndexSet& Dune::YaspGrid< dim >::levelIndexSet | ( | int | level | ) | const [inline, inherited] |
return const reference to the grids level index set for level level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
Traits::template Partition<pitype>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::levelView | ( | int | level | ) | const [inline, inherited] |
View for a grid level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Partition<All_Partition>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::levelView | ( | int | level | ) | const [inline, inherited] |
View for a grid level for All_Partition.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
bool Dune::GridDefaultImplementation< dim, dimworld, yaspgrid_ctype , YaspGridFamily< dim, dim > >::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, yaspgrid_ctype , YaspGridFamily< dim, dim > >::loadBalance | ( | DataHandle & | data | ) | [inline, inherited] |
default implementation of load balance does nothing and returns false
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
const Traits::LocalIdSet& Dune::YaspGrid< dim >::localIdSet | ( | ) | const [inline, inherited] |
return const reference to the grids local id set
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
bool Dune::Grid< dim, dimworld, ct, GridFamily >::mark | ( | int | refCount, |
const typename Codim< 0 >::Entity & | e | ||
) | [inline, inherited] |
bool Dune::YaspGrid< dim >::mark | ( | int | refCount, |
const typename Traits::template Codim< 0 >::Entity & | e | ||
) | [inline, inherited] |
Marks an entity to be refined/coarsened in a subsequent adapt.
[in] | refCount | Number of subdivisions that should be applied. Negative value means coarsening. |
[in] | e | Entity to Entity that should be refined |
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
References Dune::Alberta::max(), and Dune::YaspGrid< dim >::maxLevel().
int Dune::YaspGrid< dim >::maxLevel | ( | ) | const [inline, inherited] |
Return maximum level defined in this grid. Levels are numbered 0 ... maxlevel with 0 the coarsest level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
size_t Dune::YaspGrid< dim >::numBoundarySegments | ( | ) | const [inline, inherited] |
returns the number of boundary segments within the macro grid
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::YaspGrid< dim >::overlapSize | ( | int | level, |
int | codim | ||
) | const [inline, inherited] |
return size (= distance in graph) of overlap region
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
int Dune::YaspGrid< dim >::overlapSize | ( | int | codim | ) | const [inline, inherited] |
return size (= distance in graph) of overlap region
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
References Dune::YaspGrid< dim >::maxLevel().
void Dune::YaspGrid< dim >::postAdapt | ( | ) | [inline, inherited] |
clean up some markers
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
bool Dune::YaspGrid< dim >::preAdapt | ( | ) | [inline, inherited] |
returns true, if the grid will be coarsened
Reimplemented from Dune::GridDefaultImplementation< dim, dim, yaspgrid_ctype, YaspGridFamily< dim, dim > >.
References Dune::YaspGrid< dim >::comm().
void Dune::YaspGrid< dim >::refineOptions | ( | bool | keepPhysicalOverlap | ) | [inline, inherited] |
set options for refinement
keepPhysicalOverlap | [true] keep the physical size of the overlap, [false] keep the number of cells in the overlap. Default is [true]. |
void Dune::RefinementImp::HCube::RefinementGrid< dimension >::refineTo | ( | int | level | ) |
Make sure the grid as at least the given refinement level.
This simply wraps the globalRefine() method of YaspGrid.
level | The refinement level to enforce |
int Dune::YaspGrid< dim >::size | ( | int | level, |
int | codim | ||
) | const [inline, inherited] |
number of entities per level and codim in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::YaspGrid< dim >::size | ( | int | codim | ) | const [inline, inherited] |
number of leaf entities per codim in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel().
int Dune::YaspGrid< dim >::size | ( | int | level, |
GeometryType | type | ||
) | const [inline, inherited] |
number of entities per level and geometry type in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::YaspGrid< dim >::size | ( | GeometryType | type | ) | const [inline, inherited] |
number of leaf entities per geometry type in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References Dune::YaspGrid< dim >::maxLevel(), and Dune::YaspGrid< dim >::size().
friend class Dune::YaspEntity< 0, dim, const Dune::YaspGrid< dim > > [friend, inherited] |
friend class Dune::YaspGlobalIdSet< const Dune::YaspGrid< dim > > [friend, inherited] |
friend class Dune::YaspIntersection< const Dune::YaspGrid< dim > > [friend, inherited] |
friend class Dune::YaspIntersectionIterator< const Dune::YaspGrid< dim > > [friend, inherited] |
friend class Dune::YaspLeafIndexSet< const Dune::YaspGrid< dim > > [friend, inherited] |
friend class Dune::YaspLevelIndexSet< const Dune::YaspGrid< dim > > [friend, inherited] |