15 #include "../config/config.hpp"
19 #include "../linalg/hypre.hpp"
20 #include "../mesh/pmesh.hpp"
21 #include "../mesh/nurbs.hpp"
27 class ConformingProlongationOperator;
45 mutable int ltdof_size;
89 void GenerateGlobalOffsets()
const;
92 void ConstructTrueDofs();
93 void ConstructTrueNURBSDofs();
102 Dependency(
int r,
int d,
double c) : rank(r), dof(d), coef(c) {}
111 DepList() : type(0) {}
113 bool IsTrueDof(
int my_rank)
const
114 {
return type == 0 || (type == 1 && list[0].rank == my_rank); }
117 void AddSlaveDependencies(DepList deps[],
int master_rank,
118 const Array<int> &master_dofs,
int master_ndofs,
122 void Add1To1Dependencies(DepList deps[],
int owner_rank,
123 const Array<int> &owner_dofs,
int owner_ndofs,
126 void GetDofs(
int type,
int index,
Array<int>& dofs)
const;
127 void ReorderFaceDofs(
Array<int> &dofs,
int orient)
const;
130 void Build_Dof_TrueDof_Matrix()
const;
135 void GetParallelConformingInterpolation()
const;
141 const Table* old_elem_dof);
148 const Table *old_elem_dof);
199 {
if (!P) { Build_Dof_TrueDof_Matrix(); }
return P; }
227 int component = -1)
const;
271 virtual void Update(
bool want_transform =
true);
304 #endif // MFEM_USE_MPI
Abstract class for Finite Elements.
virtual const Operator * GetProlongationMatrix()
virtual void GetEssentialTrueDofs(const Array< int > &bdr_attr_is_ess, Array< int > &ess_tdof_list, int component=-1)
HYPRE_Int GetGlobalTDofNumber(int ldof) const
Returns the global tdof number of the given local degree of freedom.
HypreParVector * NewTrueDofVector()
virtual void GetEssentialVDofs(const Array< int > &bdr_attr_is_ess, Array< int > &ess_dofs, int component=-1) const
Determine the boundary degrees of freedom.
HYPRE_Int * GetDofOffsets() const
virtual void Update(bool want_transform=true)
int VDofToDof(int vdof) const
Data type dense matrix using column-major storage.
void DivideByGroupSize(double *vec)
Scale a vector of true dofs.
Abstract parallel finite element space.
void Synchronize(Array< int > &ldof_marker) const
virtual const SparseMatrix * GetRestrictionMatrix()
Get the R matrix which restricts a local dof vector to true dof vector.
void Lose_Dof_TrueDof_Matrix()
int GetLocalTDofNumber(int ldof) const
HypreParMatrix * GetPartialConformingInterpolation()
For a non-conforming mesh, construct and return the interpolation matrix from the partially conformin...
const HYPRE_Int * GetFaceNbrGlobalDofMap()
HYPRE_Int GetMyDofOffset() const
void DeleteAll()
Delete whole array.
void GetSharedEdgeDofs(int group, int ei, Array< int > &dofs) const
virtual int GetTrueVSize() const
Return the number of local vector true dofs.
virtual void GetBdrElementDofs(int i, Array< int > &dofs) const
Returns indexes of degrees of freedom for i'th boundary element.
void GetFaceNbrElementVDofs(int i, Array< int > &vdofs) const
HYPRE_Int GetGlobalNumRows() const
Communicator performing operations within groups defined by a GroupTopology with arbitrary-size data ...
const FiniteElement * GetFaceNbrFE(int i) const
void GetSharedFaceDofs(int group, int fi, Array< int > &dofs) const
void ExchangeFaceNbrData()
HYPRE_Int GetGlobalNumCols() const
void LoseTrueDofOffsets()
void LoseData()
NULL-ifies the data.
HypreParMatrix * Dof_TrueDof_Matrix() const
The true dof-to-dof interpolation matrix.
HYPRE_Int GlobalTrueVSize() const
HYPRE_Int GetMyTDofOffset() const
virtual void GetFaceDofs(int i, Array< int > &dofs) const
HYPRE_Int GlobalVSize() const
Wrapper for hypre's parallel vector class.
GroupCommunicator & GroupComm()
Return a reference to the internal GroupCommunicator (on VDofs)
HYPRE_Int GetGlobalScalarTDofNumber(int sldof)
bool Nonconforming() const
virtual void GetElementDofs(int i, Array< int > &dofs) const
Returns indexes of degrees of freedom in array dofs for i'th element.
Table face_nbr_element_dof
virtual ~ParFiniteElementSpace()
const FiniteElement * GetFaceNbrFaceFE(int i) const
int GetFaceNbrVSize() const
HYPRE_Int * GetTrueDofOffsets() const
void GetFaceNbrFaceVDofs(int i, Array< int > &vdofs) const
virtual void UpdatesFinished()
Free GridFunction transformation matrix (if any), to save memory.
NURBSExtension * NURBSext
Wrapper for hypre's ParCSR matrix class.
virtual void UpdatesFinished()
Free ParGridFunction transformation matrix (if any), to save memory.
GroupCommunicator * ScalarGroupComm()
Return a new GroupCommunicator on Dofs.
Class for parallel meshes.
ParFiniteElementSpace(ParMesh *pm, const FiniteElementCollection *f, int dim=1, int ordering=Ordering::byNODES)
Array< HYPRE_Int > face_nbr_glob_dof_map