MFEM  v3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::ParBilinearForm Class Reference

Class for parallel bilinear form. More...

#include <pbilinearform.hpp>

Inheritance diagram for mfem::ParBilinearForm:
[legend]
Collaboration diagram for mfem::ParBilinearForm:
[legend]

Public Member Functions

 ParBilinearForm (ParFiniteElementSpace *pf)
 
 ParBilinearForm (ParFiniteElementSpace *pf, ParBilinearForm *bf)
 
void KeepNbrBlock (bool knb=true)
 
void Assemble (int skip_zeros=1)
 Assemble the local matrix. More...
 
HypreParMatrixParallelAssemble ()
 Returns the matrix assembled on the true dofs, i.e. P^t A P. More...
 
HypreParMatrixParallelAssembleElim ()
 Returns the eliminated matrix assembled on the true dofs, i.e. P^t A_e P. More...
 
HypreParMatrixParallelAssemble (SparseMatrix *m)
 Return the matrix m assembled on the true dofs, i.e. P^t A P. More...
 
void TrueAddMult (const Vector &x, Vector &y, const double a=1.0) const
 Compute y += a (P^t A P) x, where x and y are vectors on the true dofs. More...
 
ParFiniteElementSpaceParFESpace () const
 
virtual ~ParBilinearForm ()
 
- Public Member Functions inherited from mfem::BilinearForm
 BilinearForm (FiniteElementSpace *f)
 Creates bilinear form associated with FE space *f. More...
 
 BilinearForm (FiniteElementSpace *f, BilinearForm *bf, int ps=0)
 
int Size () const
 Get the size of the BilinearForm as a square matrix. More...
 
void UsePrecomputedSparsity (int ps=1)
 
void AllocateMatrix ()
 
Array< BilinearFormIntegrator * > * GetDBFI ()
 
Array< BilinearFormIntegrator * > * GetBBFI ()
 
Array< BilinearFormIntegrator * > * GetFBFI ()
 
Array< BilinearFormIntegrator * > * GetBFBFI ()
 
const double & operator() (int i, int j)
 
virtual double & Elem (int i, int j)
 Returns reference to a_{ij}. More...
 
virtual const double & Elem (int i, int j) const
 Returns constant reference to a_{ij}. More...
 
virtual void Mult (const Vector &x, Vector &y) const
 Matrix vector multiplication. More...
 
void FullMult (const Vector &x, Vector &y) const
 
virtual void AddMult (const Vector &x, Vector &y, const double a=1.0) const
 
void FullAddMult (const Vector &x, Vector &y) const
 
double InnerProduct (const Vector &x, const Vector &y) const
 
virtual MatrixInverseInverse () const
 Returns a pointer to (approximation) of the matrix inverse. More...
 
virtual void Finalize (int skip_zeros=1)
 Finalizes the matrix initialization. More...
 
const SparseMatrixSpMat () const
 Returns a reference to the sparse martix. More...
 
SparseMatrixSpMat ()
 
SparseMatrixLoseMat ()
 
void AddDomainIntegrator (BilinearFormIntegrator *bfi)
 Adds new Domain Integrator. More...
 
void AddBoundaryIntegrator (BilinearFormIntegrator *bfi)
 Adds new Boundary Integrator. More...
 
void AddInteriorFaceIntegrator (BilinearFormIntegrator *bfi)
 Adds new interior Face Integrator. More...
 
void AddBdrFaceIntegrator (BilinearFormIntegrator *bfi)
 Adds new boundary Face Integrator. More...
 
void operator= (const double a)
 
void Assemble (int skip_zeros=1)
 Assembles the form i.e. sums over all domain/bdr integrators. More...
 
void ConformingAssemble ()
 
void ConformingAssemble (GridFunction &sol, LinearForm &rhs)
 
void ComputeElementMatrices ()
 Compute and store internally all element matrices. More...
 
void FreeElementMatrices ()
 Free the memory used by the element matrices. More...
 
void ComputeElementMatrix (int i, DenseMatrix &elmat)
 
void AssembleElementMatrix (int i, const DenseMatrix &elmat, Array< int > &vdofs, int skip_zeros=1)
 
void EliminateEssentialBC (Array< int > &bdr_attr_is_ess, Vector &sol, Vector &rhs, int d=0)
 
void EliminateVDofs (Array< int > &vdofs, Vector &sol, Vector &rhs, int d=0)
 Here, vdofs is a list of DOFs. More...
 
void EliminateVDofs (Array< int > &vdofs, int d=0)
 
void EliminateVDofsInRHS (Array< int > &vdofs, const Vector &x, Vector &b)
 
double FullInnerProduct (const Vector &x, const Vector &y) const
 
void EliminateEssentialBC (Array< int > &bdr_attr_is_ess, int d=0)
 
void EliminateEssentialBCFromDofs (Array< int > &ess_dofs, Vector &sol, Vector &rhs, int d=0)
 
void EliminateEssentialBCFromDofs (Array< int > &ess_dofs, int d=0)
 
void Update (FiniteElementSpace *nfes=NULL)
 
FiniteElementSpaceGetFES ()
 
virtual ~BilinearForm ()
 Destroys bilinear form. More...
 
- Public Member Functions inherited from mfem::Matrix
 Matrix (int s)
 Creates a square matrix of size s. More...
 
 Matrix (int h, int w)
 Creates a matrix of the given height and width. More...
 
virtual void Print (std::ostream &out=std::cout, int width_=4) const
 Prints matrix to stream out. More...
 
virtual ~Matrix ()
 Destroys matrix. More...
 
- Public Member Functions inherited from mfem::Operator
 Operator (int s=0)
 Construct a square Operator with given size s (default 0) More...
 
 Operator (int h, int w)
 
int Height () const
 Get the height (size of output) of the Operator. Synonym with NumRows. More...
 
int NumRows () const
 
int Width () const
 Get the width (size of input) of the Operator. Synonym with NumCols. More...
 
int NumCols () const
 
virtual void MultTranspose (const Vector &x, Vector &y) const
 Action of the transpose operator. More...
 
virtual OperatorGetGradient (const Vector &x) const
 Evaluate the gradient operator at the point x. More...
 
void PrintMatlab (std::ostream &out, int n=0, int m=0)
 Prints operator with input size n and output size m in matlab format. More...
 
virtual ~Operator ()
 

Protected Member Functions

void pAllocMat ()
 
void AssembleSharedFaces (int skip_zeros=1)
 
- Protected Member Functions inherited from mfem::BilinearForm
void AllocMat ()
 
 BilinearForm ()
 

Protected Attributes

ParFiniteElementSpacepfes
 
ParGridFunction X
 
ParGridFunction Y
 
bool keep_nbr_block
 
- Protected Attributes inherited from mfem::BilinearForm
SparseMatrixmat
 Sparse matrix to be associated with the form. More...
 
SparseMatrixmat_e
 
FiniteElementSpacefes
 FE space on which the form lives. More...
 
int extern_bfs
 
Array< BilinearFormIntegrator * > dbfi
 Set of Domain Integrators to be applied. More...
 
Array< BilinearFormIntegrator * > bbfi
 Set of Boundary Integrators to be applied. More...
 
Array< BilinearFormIntegrator * > fbfi
 Set of interior face Integrators to be applied. More...
 
Array< BilinearFormIntegrator * > bfbfi
 Set of boundary face Integrators to be applied. More...
 
DenseMatrix elemmat
 
Array< int > vdofs
 
DenseTensorelement_matrices
 
int precompute_sparsity
 
- Protected Attributes inherited from mfem::Operator
int height
 
int width
 

Detailed Description

Class for parallel bilinear form.

Definition at line 28 of file pbilinearform.hpp.

Constructor & Destructor Documentation

mfem::ParBilinearForm::ParBilinearForm ( ParFiniteElementSpace pf)
inline

Definition at line 42 of file pbilinearform.hpp.

mfem::ParBilinearForm::ParBilinearForm ( ParFiniteElementSpace pf,
ParBilinearForm bf 
)
inline

Definition at line 46 of file pbilinearform.hpp.

virtual mfem::ParBilinearForm::~ParBilinearForm ( )
inlinevirtual

Definition at line 72 of file pbilinearform.hpp.

Member Function Documentation

void mfem::ParBilinearForm::Assemble ( int  skip_zeros = 1)

Assemble the local matrix.

Definition at line 176 of file pbilinearform.cpp.

void mfem::ParBilinearForm::AssembleSharedFaces ( int  skip_zeros = 1)
protected

Definition at line 146 of file pbilinearform.cpp.

void mfem::ParBilinearForm::KeepNbrBlock ( bool  knb = true)
inline

When set to true and the ParBilinearForm has interior face integrators, the local SparseMatrix will include the rows (in addition to the columns) corresponding to face-neighbor dofs. The default behavior is to disregard those rows. Must be called before the first Assemble call.

Definition at line 53 of file pbilinearform.hpp.

void mfem::ParBilinearForm::pAllocMat ( )
protected

Definition at line 21 of file pbilinearform.cpp.

HypreParMatrix* mfem::ParBilinearForm::ParallelAssemble ( )
inline

Returns the matrix assembled on the true dofs, i.e. P^t A P.

Definition at line 59 of file pbilinearform.hpp.

HypreParMatrix * mfem::ParBilinearForm::ParallelAssemble ( SparseMatrix m)

Return the matrix m assembled on the true dofs, i.e. P^t A P.

Definition at line 106 of file pbilinearform.cpp.

HypreParMatrix* mfem::ParBilinearForm::ParallelAssembleElim ( )
inline

Returns the eliminated matrix assembled on the true dofs, i.e. P^t A_e P.

Definition at line 62 of file pbilinearform.hpp.

ParFiniteElementSpace* mfem::ParBilinearForm::ParFESpace ( ) const
inline

Definition at line 70 of file pbilinearform.hpp.

void mfem::ParBilinearForm::TrueAddMult ( const Vector x,
Vector y,
const double  a = 1.0 
) const

Compute y += a (P^t A P) x, where x and y are vectors on the true dofs.

Definition at line 190 of file pbilinearform.cpp.

Member Data Documentation

bool mfem::ParBilinearForm::keep_nbr_block
protected

Definition at line 34 of file pbilinearform.hpp.

ParFiniteElementSpace* mfem::ParBilinearForm::pfes
protected

Definition at line 31 of file pbilinearform.hpp.

ParGridFunction mfem::ParBilinearForm::X
mutableprotected

Definition at line 32 of file pbilinearform.hpp.

ParGridFunction mfem::ParBilinearForm::Y
mutableprotected

Definition at line 32 of file pbilinearform.hpp.


The documentation for this class was generated from the following files: