P0g
Forward declaration of global constant finite element spaces.
template < class Range, class Mesh> class P0g;
| Template parameters | |
|---|---|
| Range | Value range of the finite element space. |
| Mesh | Mesh type on which the space is defined. |
Global constant (P0g) finite element space.
| Specialization | Description |
|---|---|
Math::SpatialMatrix<Scalar>, Geometry::Mesh<Context::Local>Full specializationtemplate < class Scalar> class P0g< Math::SpatialMatrix< Scalar >, Geometry::Mesh< Context::Local >> final; | Matrix-range finite element or expression specialization. |
Math::SpatialMatrix<Scalar>, Geometry::Mesh<Context::MPI>Full specializationtemplate < class Scalar> class P0g< Math::SpatialMatrix< Scalar >, Geometry::Mesh< Context::MPI >> final; | Matrix-range finite element or expression specialization. |
Math::SpatialVector<Scalar>, Geometry::Mesh<Context::Local> | Cellwise-constant vector-valued finite element space with a global basis. |
Math::SpatialVector<Scalar>, Geometry::Mesh<Context::MPI> | Distributed vector P0g finite element space for MPI meshes. |
Scalar, Geometry::Mesh<Context::Local> | Cellwise-constant scalar finite element space with a global basis. |
Scalar, Geometry::Mesh<Context::MPI> | Distributed scalar P0g finite element space for MPI meshes. |
- Scalar-valued: 1 DOF total (span{1})
- Vector-valued: vdim DOFs total (span{e_0,...,e_{vdim-1}})
This is the global analogue of P0 (which is elementwise constant).
Supported P0g range specializations.
| Range | Local context | MPI context |
|---|---|---|
| Scalar | Supported | Supported |
| SpatialVector | Supported | Supported |
| SpatialMatrix | Explicit rows and columns | Component-wise ownership and ghosts |