12 #ifndef MFEM_FESPACEHIERARCHY
13 #define MFEM_FESPACEHIERARCHY
56 bool ownM,
bool ownFES,
bool ownP);
virtual void AddOrderRefinedLevel(FiniteElementCollection *fec, int dim=1, int ordering=Ordering::byVDIM)
Adds one level to the hierarchy by using a different finite element order defined through FiniteEleme...
const ParFiniteElementSpace & GetFinestFESpace() const override
Returns the finite element space at the finest level.
Abstract parallel finite element space.
Array< Operator * > prolongations
const ParFiniteElementSpace & GetFESpaceAtLevel(int level) const override
Returns the finite element space at the given level.
void AddOrderRefinedLevel(FiniteElementCollection *fec, int dim=1, int ordering=Ordering::byVDIM) override
Adds one level to the hierarchy by using a different finite element order defined through FiniteEleme...
void AddUniformlyRefinedLevel(int dim=1, int ordering=Ordering::byVDIM) override
Adds one level to the hierarchy by uniformly refining the mesh on the previous level.
Array< bool > ownedProlongations
virtual ~FiniteElementSpaceHierarchy()
Destructor deleting all meshes and spaces that are owned.
Array< FiniteElementSpace * > fespaces
int GetNumLevels() const
Returns the number of levels in the hierarchy.
void AddLevel(Mesh *mesh, FiniteElementSpace *fespace, Operator *prolongation, bool ownM, bool ownFES, bool ownP)
Adds one level to the hierarchy.
int GetFinestLevelIndex() const
Returns the index of the finest level.
virtual const FiniteElementSpace & GetFESpaceAtLevel(int level) const
Returns the finite element space at the given level.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
Collection of finite elements from the same family in multiple dimensions. This class is used to matc...
Array< bool > ownedMeshes
FiniteElementSpaceHierarchy(Mesh *mesh, FiniteElementSpace *fespace, bool ownM, bool ownFES)
Constructs a space hierarchy with the given mesh and space on the coarsest level. ...
virtual void AddUniformlyRefinedLevel(int dim=1, int ordering=Ordering::byVDIM)
Adds one level to the hierarchy by uniformly refining the mesh on the previous level.
ParFiniteElementSpaceHierarchy(ParMesh *mesh, ParFiniteElementSpace *fespace, bool ownM, bool ownFES)
Constructs a parallel space hierarchy with the given mesh and spaces on level zero.
Operator * GetProlongationAtLevel(int level) const
Returns the prolongation operator from the finite element space at level to the finite element space ...
Class for parallel meshes.
virtual const FiniteElementSpace & GetFinestFESpace() const
Returns the finite element space at the finest level.