#include <domainDecomp.hh>
Public Types | |
typedef concepts::Element< typename F::t_type > | Element |
typedef concepts::Scan< Element > | Scan |
typedef Element< F > | type |
typedef Scan< Element< F > > | Scanner |
Public Member Functions | |
template<class G > | |
DomainDecomp (G &prebuild, Sequence< Set< uint > > domains, BoundaryConditions *bc=0, CellConditions *cc=0, uint spcNo=0, uint *offset=0) | |
void | rebuild () |
Rebuilds the spaces. | |
bool | available () const |
virtual uint | dim () const |
Returns the dimension of the space. | |
virtual uint | nelm () const |
Returns the number of elements in the space. | |
virtual Scan * | scan () const |
Returns a scanner to iterate over the elements of the space. | |
virtual uint & | lastIdx () |
Returns last global index of the space. | |
virtual uint | offset () const |
Returns the offset, returns 0 if space is not a subspace or first one. | |
virtual const F & | space (uint i) const |
Returns space belonging to i th domain. | |
F & | space (uint i) |
virtual const Set< IndexRange > | indicesI (uint i) const |
Returns index set for dof inside the i th domain. | |
virtual const Set< IndexRange > | indicesB (uint i) const |
Returns index set for dof at the boundary the i th domain. | |
const uint | domains () const |
Returns number of domains/spaces. | |
virtual uint | getOutputDimension () const |
Returns the default output dimension, when we consider plotting a real-valued operator on this space. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns all index sets for dof at boundary of each domain. | |
Protected Attributes | |
uint | domains_ |
Number of domains/spaces. | |
Sequence< Set< IndexRange > > | indicesI_ |
Index sets of dof inside and at the boundary for each domain/space. | |
Sequence< Set< IndexRange > > | indicesB_ |
Domain decomposition space
F | type of space pre builder class |
Definition at line 72 of file domainDecomp.hh.
typedef concepts::Element<typename F::t_type> concepts::DomainDecomp< F >::Element |
Element type
F::t_type | type of T matrix entries |
Definition at line 78 of file domainDecomp.hh.
typedef concepts::Scan<Element> concepts::DomainDecomp< F >::Scan |
Definition at line 79 of file domainDecomp.hh.
|
inherited |
|
inherited |
concepts::DomainDecomp< F >::DomainDecomp | ( | G & | prebuild, |
Sequence< Set< uint > > | domains, | ||
BoundaryConditions * | bc = 0 , |
||
CellConditions * | cc = 0 , |
||
uint | spcNo = 0 , |
||
uint * | offset = 0 |
||
) |
Constructor
prebuild | Space pre builder |
domains | Attributes of cells for each domain |
bc | Boundary conditions |
cc | Cell conditions |
spcNo | Number for the global indices for distinguishing between global indices on same topological entity (same for all domains) |
offset | Offset of global indices |
Definition at line 163 of file domainDecomp.hh.
|
virtual |
Definition at line 249 of file domainDecomp.hh.
bool concepts::DomainDecomp< F >::available | ( | ) | const |
Returns true, if space is available, false, if it has to be rebuilt.
The space is available if the spaces of all domains are available, and the build number of the spaces have not changed, i.e. the spaces are forced to rebuild from somewhere else.
Definition at line 363 of file domainDecomp.hh.
|
inlinevirtual |
Returns the dimension of the space.
Implements concepts::Space< F >.
Definition at line 373 of file domainDecomp.hh.
|
inlineinherited |
Returns number of domains/spaces.
Definition at line 37 of file domainDecomp.hh.
|
inlinevirtualinherited |
Returns the default output dimension, when we consider plotting a real-valued operator on this space.
Reimplemented in hp2D::hpAdaptiveSpaceHCurl, and hp2Dedge::Space.
|
virtual |
Returns index set for dof at the boundary the i
th domain.
Implements concepts::DDSpace< F::t_type >.
Definition at line 426 of file domainDecomp.hh.
|
virtual |
Returns index set for dof inside the i
th domain.
Implements concepts::DDSpace< F::t_type >.
Definition at line 418 of file domainDecomp.hh.
|
protectedvirtual |
Returns all index sets for dof at boundary of each domain.
Reimplemented from concepts::DDSpace< F::t_type >.
Definition at line 263 of file domainDecomp.hh.
|
virtual |
Returns last global index of the space.
Implements concepts::Subspace.
Definition at line 396 of file domainDecomp.hh.
|
inlinevirtual |
Returns the number of elements in the space.
Implements concepts::Space< F >.
Definition at line 382 of file domainDecomp.hh.
|
virtual |
Returns the offset, returns 0 if space is not a subspace or first one.
Implements concepts::Subspace.
Definition at line 401 of file domainDecomp.hh.
void concepts::DomainDecomp< F >::rebuild | ( | ) |
Rebuilds the spaces.
Definition at line 285 of file domainDecomp.hh.
|
inlinevirtual |
Returns a scanner to iterate over the elements of the space.
Implements concepts::Space< F >.
Definition at line 389 of file domainDecomp.hh.
F & concepts::DomainDecomp< F >::space | ( | uint | i | ) |
Definition at line 412 of file domainDecomp.hh.
|
virtual |
Returns space belonging to i
th domain.
Implements concepts::DDSpace< F::t_type >.
Definition at line 406 of file domainDecomp.hh.
|
protectedinherited |
Number of domains/spaces.
Definition at line 54 of file domainDecomp.hh.
|
protectedinherited |
Definition at line 56 of file domainDecomp.hh.
|
protectedinherited |
Index sets of dof inside and at the boundary for each domain/space.
Definition at line 56 of file domainDecomp.hh.