15 #include "../config/config.hpp"
19 #include "../linalg/hypre.hpp"
20 #include "../mesh/pmesh.hpp"
21 #include "../mesh/nurbs.hpp"
45 mutable int ltdof_size;
48 int ngvdofs, ngedofs, ngfdofs, ngdofs;
99 void GenerateGlobalOffsets()
const;
102 void ConstructTrueDofs();
103 void ConstructTrueNURBSDofs();
106 void ApplyLDofSigns(
Table &el_dof)
const;
120 int PackDof(
int entity,
int index,
int edof)
const;
121 void UnpackDof(
int dof,
int &entity,
int &index,
int &edof)
const;
123 void ScheduleSendRow(
const struct PMatrixRow &row,
int dof, GroupId group_id,
124 std::map<int, class NeighborRowMessage> &send_msg)
const;
126 void ForwardRow(
const struct PMatrixRow &row,
int dof,
127 GroupId group_sent_id, GroupId group_id,
128 std::map<int, class NeighborRowMessage> &send_msg)
const;
130 #ifdef MFEM_DEBUG_PMATRIX
131 void DebugDumpDOFs(std::ofstream &os,
140 MakeVDimHypreMatrix(
const std::vector<struct PMatrixRow> &rows,
141 int local_rows,
int local_cols,
146 void Build_Dof_TrueDof_Matrix()
const;
156 bool partial =
false)
const;
162 const Table* old_elem_dof);
169 const Table *old_elem_dof);
219 const int *partitioning,
268 {
if (!P) { Build_Dof_TrueDof_Matrix(); }
return P; }
299 int component = -1)
const;
349 virtual void Update(
bool want_transform =
true);
382 #endif // MFEM_USE_MPI
Abstract class for Finite Elements.
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 const Operator * GetProlongationMatrix() const
virtual void Update(bool want_transform=true)
Pointer to an Operator of a specified type.
int VDofToDof(int vdof) const
const GroupCommunicator & GroupComm() const
Return a const reference to the internal GroupCommunicator (on VDofs)
virtual void GetTrueTransferOperator(const FiniteElementSpace &coarse_fes, OperatorHandle &T) const
Construct and return an Operator that can be used to transfer true-dof data from coarse_fes, defined on a coarse mesh, to this FE space, defined on a refined mesh.
void DivideByGroupSize(double *vec)
Scale a vector of true dofs.
Abstract parallel finite element space.
void Synchronize(Array< int > &ldof_marker) const
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 FiniteElementCollection * fec
Associated FE collection (not owned).
const HYPRE_Int * GetFaceNbrGlobalDofMap()
HYPRE_Int GetMyDofOffset() const
void DeleteAll()
Delete whole array.
A parallel extension of the NCMesh class.
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
Identifies a vertex/edge/face in both Mesh and NCMesh.
virtual void GetFaceDofs(int i, Array< int > &dofs) const
HYPRE_Int GlobalVSize() const
Wrapper for hypre's parallel vector class.
Class FiniteElementSpace - responsible for providing FEM view of the mesh, mainly managing the set of...
GroupCommunicator & GroupComm()
Return a reference to the internal GroupCommunicator (on VDofs)
ParFiniteElementSpace(const ParFiniteElementSpace &orig, ParMesh *pmesh=NULL, const FiniteElementCollection *fec=NULL)
Copy constructor: deep copy all data from orig except the ParMesh, the FiniteElementCollection, and some derived data.
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()
virtual const SparseMatrix * GetRestrictionMatrix() const
Get the R matrix which restricts a local dof vector to true dof vector.
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 the GridFunction update operator (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.
Array< HYPRE_Int > face_nbr_glob_dof_map