MFEM v4.7.0
Finite element discretization library
|
#include <fespacehierarchy.hpp>
Public Member Functions | |
ParFiniteElementSpaceHierarchy ()=default | |
ParFiniteElementSpaceHierarchy (ParMesh *mesh, ParFiniteElementSpace *fespace, bool ownM, bool ownFES) | |
Constructs a parallel space hierarchy with the given mesh and spaces on level zero. | |
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. | |
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 FiniteElementCollection. | |
const ParFiniteElementSpace & | GetFESpaceAtLevel (int level) const override |
Returns the finite element space at the given level. | |
ParFiniteElementSpace & | GetFESpaceAtLevel (int level) override |
Returns the finite element space at the given level. | |
const ParFiniteElementSpace & | GetFinestFESpace () const override |
Returns the finite element space at the finest level. | |
ParFiniteElementSpace & | GetFinestFESpace () override |
Returns the finite element space at the finest level. | |
Public Member Functions inherited from mfem::FiniteElementSpaceHierarchy | |
FiniteElementSpaceHierarchy ()=default | |
FiniteElementSpaceHierarchy (Mesh *mesh, FiniteElementSpace *fespace, bool ownM, bool ownFES) | |
Constructs a space hierarchy with the given mesh and space on the coarsest level. | |
virtual | ~FiniteElementSpaceHierarchy () |
Destructor deleting all meshes and spaces that are owned. | |
int | GetNumLevels () const |
Returns the number of levels in the hierarchy. | |
int | GetFinestLevelIndex () const |
Returns the index of the finest level. | |
void | AddLevel (Mesh *mesh, FiniteElementSpace *fespace, Operator *prolongation, bool ownM, bool ownFES, bool ownP) |
Adds one level to the hierarchy. | |
Operator * | GetProlongationAtLevel (int level) const |
Returns the prolongation operator from the finite element space at level to the finite element space at level + 1. | |
Additional Inherited Members | |
Protected Attributes inherited from mfem::FiniteElementSpaceHierarchy | |
Array< Mesh * > | meshes |
Array< FiniteElementSpace * > | fespaces |
Array< Operator * > | prolongations |
Array< bool > | ownedMeshes |
Array< bool > | ownedFES |
Array< bool > | ownedProlongations |
Definition at line 91 of file fespacehierarchy.hpp.
|
default |
mfem::ParFiniteElementSpaceHierarchy::ParFiniteElementSpaceHierarchy | ( | ParMesh * | mesh, |
ParFiniteElementSpace * | fespace, | ||
bool | ownM, | ||
bool | ownFES ) |
Constructs a parallel space hierarchy with the given mesh and spaces on level zero.
The ownership of the mesh and space may be transferred to the ParFiniteElementSpaceHierarchy by setting the according boolean variables.
Definition at line 132 of file fespacehierarchy.cpp.
|
overridevirtual |
Adds one level to the hierarchy by using a different finite element order defined through FiniteElementCollection.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 152 of file fespacehierarchy.cpp.
|
overridevirtual |
Adds one level to the hierarchy by uniformly refining the mesh on the previous level.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 140 of file fespacehierarchy.cpp.
|
overridevirtual |
Returns the finite element space at the given level.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 164 of file fespacehierarchy.cpp.
|
overridevirtual |
Returns the finite element space at the given level.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 170 of file fespacehierarchy.cpp.
|
overridevirtual |
Returns the finite element space at the finest level.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 177 of file fespacehierarchy.cpp.
|
overridevirtual |
Returns the finite element space at the finest level.
Reimplemented from mfem::FiniteElementSpaceHierarchy.
Definition at line 183 of file fespacehierarchy.cpp.