dune-grid
2.1.1
|
One-dimensional adaptive grid. More...
#include <dune/grid/onedgrid.hh>
Public Types | |
enum | RefinementType { LOCAL, COPY } |
The different forms of grid refinement supported by OneDGrid. More... | |
typedef double | ctype |
The type used to store coordinates. | |
typedef OneDGridFamily< dim, dimworld > | GridFamily |
GridFamily of OneDGrid. | |
typedef OneDGridFamily< dim, dimworld >::Traits | Traits |
The traits of this class. | |
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 | |
OneDGrid (const std::vector< ctype > &coords) | |
Constructor with an explicit set of coordinates. | |
OneDGrid (int numElements, const ctype &leftBoundary, const ctype &rightBoundary) | |
Constructor for a uniform grid. | |
~OneDGrid () | |
Destructor. | |
int | maxLevel () const |
Return maximum level defined in this grid. | |
template<int codim> | |
Traits::template Codim< codim > ::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. | |
template<int codim> | |
Traits::template Codim< codim > ::LevelIterator | lend (int level) const |
one past the end on this level | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LevelIterator | lbegin (int level) const |
Iterator to first entity of given codim on level. | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LevelIterator | lend (int level) const |
one past the end on this level | |
template<int codim> | |
Traits::template Codim< codim > ::LeafIterator | leafbegin () const |
Iterator to first entity of given codim on leaf level. | |
template<int codim> | |
Traits::template Codim< codim > ::LeafIterator | leafend () const |
one past the end on leaf level | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LeafIterator | leafbegin () const |
Iterator to first entity of given codim on level. | |
template<int codim, PartitionIteratorType PiType> | |
Traits::template Codim< codim > ::template Partition< PiType > ::LeafIterator | leafend () const |
one past the end on this level | |
int | size (int level, int codim) 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 |
Return the number of coarse grid boundary segments. | |
int | overlapSize (int codim) const |
The processor overlap for parallel computing. Always zero because this is a strictly sequential grid. | |
int | ghostSize (int codim) const |
The processor ghost overlap for parallel computing. Always zero because this is a strictly sequential grid. | |
int | overlapSize (int level, int codim) const |
The processor overlap for parallel computing. Always zero because this is a strictly sequential grid. | |
int | ghostSize (int level, int codim) const |
The processor ghost overlap for parallel computing. Always zero because this is a strictly sequential grid. | |
const Traits::GlobalIdSet & | globalIdSet () const |
Get the set of global ids. | |
const Traits::LocalIdSet & | localIdSet () const |
Get the set of local ids. | |
const Traits::LevelIndexSet & | levelIndexSet (int level) const |
Get an index set for the given level. | |
const Traits::LeafIndexSet & | leafIndexSet () const |
Get an index set for the leaf level. | |
bool | mark (int refCount, const Traits::Codim< 0 >::Entity &e) |
Mark entity for refinement. | |
int | getMark (const Traits::Codim< 0 >::Entity &e) const |
return current adaptation marker of given entity | |
bool | preAdapt () |
Does nothing except return true if some element has been marked for refinement. | |
bool | adapt () |
Triggers the grid refinement process. | |
void | postAdapt () |
Adaptation post-processing: Reset all adaptation state flags. | |
std::string | name () const |
grid identification | |
void | setRefinementType (RefinementType type) |
Sets the type of grid refinement. | |
void | globalRefine (int refCount) |
Does one uniform refinement step. | |
template<class DataHandle > | |
void | communicate (DataHandle &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
template<class DataHandle > | |
void | communicate (DataHandle &data, InterfaceType iftype, CommunicationDirection dir) const |
const CollectiveCommunication & | comm () const |
return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication. | |
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 | 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, i.e. here the default implementation returns 0. | |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir, int level) const |
void | communicate (CommDataHandleIF< DataHandleImp, DataTypeImp > &data, InterfaceType iftype, CommunicationDirection dir) const |
bool | loadBalance () |
default implementation of load balance does nothing and returns false | |
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 | |
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 | OneDGridEntityPointer |
class | OneDGridLevelIterator |
class | OneDGridHierarchicIterator< const OneDGrid > |
class | OneDGridEntity |
class | OneDGridHierarchicIterator< OneDGrid > |
class | OneDGridLeafIntersection< const OneDGrid > |
class | OneDGridLevelIntersection< const OneDGrid > |
class | OneDGridLeafIntersectionIterator< const OneDGrid > |
class | OneDGridLevelIntersectionIterator< const OneDGrid > |
class | OneDGridLevelIndexSet< const OneDGrid > |
class | OneDGridLeafIndexSet< const OneDGrid > |
class | OneDGridIdSet< const OneDGrid > |
class | OneDGridLeafIterator |
class | GridFactory |
class | Entity |
One-dimensional adaptive grid.
[ provides Dune::Grid ]
This implementation of the grid interface provides one-dimensional grids only. The OneDGrid can be nonuniform and provides local mesh refinement and coarsening.
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 double Dune::OneDGrid::ctype |
The type used to store coordinates.
If you ever want OneDGrid to use a different type for coordinates, you need to change this type and the third template argument of the base class.
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 OneDGridFamily<dim,dimworld> Dune::OneDGrid::GridFamily |
GridFamily of OneDGrid.
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 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 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 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 OneDGridFamily<dim,dimworld>::Traits Dune::OneDGrid::Traits |
The traits of this class.
Presents the typedefs as described in GridTraits.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
anonymous enum [inherited] |
anonymous enum [inherited] |
The different forms of grid refinement supported by OneDGrid.
Dune::OneDGrid::OneDGrid | ( | const std::vector< ctype > & | coords | ) |
Constructor with an explicit set of coordinates.
Dune::OneDGrid::OneDGrid | ( | int | numElements, |
const ctype & | leftBoundary, | ||
const ctype & | rightBoundary | ||
) |
Constructor for a uniform grid.
Destructor.
bool Dune::OneDGrid::adapt | ( | ) |
Triggers the grid refinement process.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
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& Dune::OneDGrid::comm | ( | ) | const [inline] |
return const reference to a collective communication object. The return type is a model of Dune::CollectiveCommunication.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
void Dune::OneDGrid::communicate | ( | DataHandle & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir, | ||
int | level | ||
) | const [inline] |
void Dune::OneDGrid::communicate | ( | DataHandle & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir | ||
) | const [inline] |
void Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::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, double , OneDGridFamily< 1, 1 > >::communicate | ( | CommDataHandleIF< DataHandleImp, DataTypeImp > & | data, |
InterfaceType | iftype, | ||
CommunicationDirection | dir | ||
) | const [inline, inherited] |
dummy communicate, doing nothing
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits :: template Codim< EntitySeed :: codimension >:: EntityPointer Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::entityPointer | ( | const EntitySeed & | seed | ) | const [inline, inherited] |
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::OneDGrid::getMark | ( | const Traits::Codim< 0 >::Entity & | e | ) | const |
return current adaptation marker of given entity
e | Entity to the entity you want to mark |
int Dune::Grid< dim, dimworld, ct, GridFamily >::getMark | ( | const typename Codim< 0 >::Entity & | e | ) | const [inline, inherited] |
int Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::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.
[in] | e | Entity for which adaptation mark should be determined |
static ReturnImplementationType<InterfaceType>::ImplementationType& Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::getRealImplementation | ( | InterfaceType & | i | ) | [inline, static, protected, inherited] |
return real implementation of interface class
int Dune::OneDGrid::ghostSize | ( | int | codim | ) | const [inline] |
The processor ghost overlap for parallel computing. Always zero because this is a strictly sequential grid.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
int Dune::OneDGrid::ghostSize | ( | int | level, |
int | codim | ||
) | const [inline] |
The processor ghost overlap for parallel computing. Always zero because this is a strictly sequential grid.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
const Traits::GlobalIdSet& Dune::OneDGrid::globalIdSet | ( | ) | const [inline] |
Get the set of global ids.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
void Dune::OneDGrid::globalRefine | ( | int | refCount | ) |
Does one uniform refinement step.
refCount | I don't know what this is good for. It doesn't actually do anything. |
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::LevelIterator Dune::OneDGrid::lbegin | ( | int | level | ) | const |
Iterator to first entity of given codim on level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::template Partition<PiType>::LevelIterator Dune::OneDGrid::lbegin | ( | int | level | ) | const |
Iterator to first entity of given codim on level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::LeafIterator Dune::OneDGrid::leafbegin | ( | ) | const |
Iterator to first entity of given codim on leaf level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::template Partition<PiType>::LeafIterator Dune::OneDGrid::leafbegin | ( | ) | const |
Iterator to first entity of given codim on level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::LeafIterator Dune::OneDGrid::leafend | ( | ) | const |
one past the end on leaf level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::template Partition<PiType>::LeafIterator Dune::OneDGrid::leafend | ( | ) | const |
one past the end on this level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
const Traits::LeafIndexSet& Dune::OneDGrid::leafIndexSet | ( | ) | const [inline] |
Get an index set for the leaf level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Referenced by size().
Traits::template Partition<pitype>::LeafGridView Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::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, double , OneDGridFamily< 1, 1 > >::leafView | ( | ) | const [inline, inherited] |
View for the leaf grid for All_Partition.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::LevelIterator Dune::OneDGrid::lend | ( | int | level | ) | const |
one past the end on this level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Traits::template Codim<codim>::template Partition<PiType>::LevelIterator Dune::OneDGrid::lend | ( | int | level | ) | const |
one past the end on this level
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
const Traits::LevelIndexSet& Dune::OneDGrid::levelIndexSet | ( | int | level | ) | const [inline] |
Get an index set for the given level.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References OneDGridLevelIndexSet< const OneDGrid >.
Traits::template Partition<pitype>::LevelGridView Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::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, double , OneDGridFamily< 1, 1 > >::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, double , OneDGridFamily< 1, 1 > >::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, double , OneDGridFamily< 1, 1 > >::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::OneDGrid::localIdSet | ( | ) | const [inline] |
Get the set of local ids.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
bool Dune::OneDGrid::mark | ( | int | refCount, |
const Traits::Codim< 0 >::Entity & | e | ||
) |
Mark entity for refinement.
refCount | if >0 mark for refinement, if <0 mark for coarsening |
e | Entity to the entity you want to mark |
bool Dune::Grid< dim, dimworld, ct, GridFamily >::mark | ( | int | refCount, |
const typename Codim< 0 >::Entity & | e | ||
) | [inline, inherited] |
bool Dune::GridDefaultImplementation< dim, dimworld, double , OneDGridFamily< 1, 1 > >::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 |
bool mark( int refCount, typename Traits::template Codim<0>::Entity & e ).
int Dune::OneDGrid::maxLevel | ( | ) | const [inline] |
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 >.
std::string Dune::OneDGrid::name | ( | ) | const [inline] |
grid identification
size_t Dune::OneDGrid::numBoundarySegments | ( | ) | const [inline] |
Return the number of coarse grid boundary segments.
For this grid implementation, the return value is always 2, because only connected domains are supported, and then the coarse grid boundary consists of two points.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
int Dune::OneDGrid::overlapSize | ( | int | codim | ) | const [inline] |
The processor overlap for parallel computing. Always zero because this is a strictly sequential grid.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
int Dune::OneDGrid::overlapSize | ( | int | level, |
int | codim | ||
) | const [inline] |
The processor overlap for parallel computing. Always zero because this is a strictly sequential grid.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
void Dune::OneDGrid::postAdapt | ( | ) |
Adaptation post-processing: Reset all adaptation state flags.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
bool Dune::OneDGrid::preAdapt | ( | ) |
Does nothing except return true if some element has been marked for refinement.
Reimplemented from Dune::GridDefaultImplementation< 1, 1, double, OneDGridFamily< 1, 1 > >.
void Dune::OneDGrid::setRefinementType | ( | RefinementType | type | ) | [inline] |
Sets the type of grid refinement.
int Dune::OneDGrid::size | ( | int | level, |
int | codim | ||
) | const [inline] |
Number of grid entities per level and codim.
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
Referenced by size().
int Dune::OneDGrid::size | ( | int | codim | ) | const [inline] |
number of leaf entities per codim in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References leafIndexSet(), and Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp >::size().
int Dune::OneDGrid::size | ( | int | level, |
GeometryType | type | ||
) | const [inline] |
number of entities per level and geometry type in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References size().
int Dune::OneDGrid::size | ( | GeometryType | type | ) | const [inline] |
number of leaf entities per geometry type in this process
Reimplemented from Dune::Grid< dim, dimworld, ct, GridFamily >.
References leafIndexSet(), and Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp >::size().
friend class Entity [friend] |
friend class GridFactory [friend] |
friend class OneDGridEntity [friend] |
friend class OneDGridEntityPointer [friend] |
friend class OneDGridHierarchicIterator< const OneDGrid > [friend] |
friend class OneDGridHierarchicIterator< OneDGrid > [friend] |
friend class OneDGridIdSet< const OneDGrid > [friend] |
friend class OneDGridLeafIndexSet< const OneDGrid > [friend] |
friend class OneDGridLeafIntersection< const OneDGrid > [friend] |
friend class OneDGridLeafIntersectionIterator< const OneDGrid > [friend] |
friend class OneDGridLeafIterator [friend] |
friend class OneDGridLevelIndexSet< const OneDGrid > [friend] |
Referenced by levelIndexSet().
friend class OneDGridLevelIntersection< const OneDGrid > [friend] |
friend class OneDGridLevelIntersectionIterator< const OneDGrid > [friend] |
friend class OneDGridLevelIterator [friend] |