MFEM  v4.2.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
mfem::QuadratureSpace Class Reference

Class representing the storage layout of a QuadratureFunction. More...

#include <fespace.hpp>

Collaboration diagram for mfem::QuadratureSpace:
[legend]

Public Member Functions

 QuadratureSpace (Mesh *mesh_, int order_)
 Create a QuadratureSpace based on the global rules from IntRules. More...
 
 QuadratureSpace (Mesh *mesh_, std::istream &in)
 Read a QuadratureSpace from the stream in. More...
 
virtual ~QuadratureSpace ()
 
int GetSize () const
 Return the total number of quadrature points. More...
 
MeshGetMesh () const
 Returns the mesh. More...
 
int GetNE () const
 Returns number of elements in the mesh. More...
 
const IntegrationRuleGetElementIntRule (int idx) const
 Get the IntegrationRule associated with mesh element idx. More...
 
void Save (std::ostream &out) const
 Write the QuadratureSpace to the stream out. More...
 

Protected Member Functions

void Construct ()
 

Protected Attributes

Meshmesh
 
int order
 
int size
 
const IntegrationRuleint_rule [Geometry::NumGeom]
 
int * element_offsets
 

Friends

class QuadratureFunction
 

Detailed Description

Class representing the storage layout of a QuadratureFunction.

Multiple QuadratureFunctions can share the same QuadratureSpace.

Definition at line 728 of file fespace.hpp.

Constructor & Destructor Documentation

mfem::QuadratureSpace::QuadratureSpace ( Mesh mesh_,
int  order_ 
)
inline

Create a QuadratureSpace based on the global rules from IntRules.

Definition at line 748 of file fespace.hpp.

mfem::QuadratureSpace::QuadratureSpace ( Mesh mesh_,
std::istream &  in 
)

Read a QuadratureSpace from the stream in.

Definition at line 2504 of file fespace.cpp.

virtual mfem::QuadratureSpace::~QuadratureSpace ( )
inlinevirtual

Definition at line 754 of file fespace.hpp.

Member Function Documentation

void mfem::QuadratureSpace::Construct ( )
protected

Definition at line 2481 of file fespace.cpp.

const IntegrationRule& mfem::QuadratureSpace::GetElementIntRule ( int  idx) const
inline

Get the IntegrationRule associated with mesh element idx.

Definition at line 766 of file fespace.hpp.

Mesh* mfem::QuadratureSpace::GetMesh ( ) const
inline

Returns the mesh.

Definition at line 760 of file fespace.hpp.

int mfem::QuadratureSpace::GetNE ( ) const
inline

Returns number of elements in the mesh.

Definition at line 763 of file fespace.hpp.

int mfem::QuadratureSpace::GetSize ( ) const
inline

Return the total number of quadrature points.

Definition at line 757 of file fespace.hpp.

void mfem::QuadratureSpace::Save ( std::ostream &  out) const

Write the QuadratureSpace to the stream out.

Definition at line 2527 of file fespace.cpp.

Friends And Related Function Documentation

friend class QuadratureFunction
friend

Definition at line 731 of file fespace.hpp.

Member Data Documentation

int* mfem::QuadratureSpace::element_offsets
protected

Definition at line 738 of file fespace.hpp.

const IntegrationRule* mfem::QuadratureSpace::int_rule[Geometry::NumGeom]
protected

Definition at line 737 of file fespace.hpp.

Mesh* mfem::QuadratureSpace::mesh
protected

Definition at line 733 of file fespace.hpp.

int mfem::QuadratureSpace::order
protected

Definition at line 734 of file fespace.hpp.

int mfem::QuadratureSpace::size
protected

Definition at line 735 of file fespace.hpp.


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