Intrepid
Public Member Functions | Private Attributes | List of all members
Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight > Class Template Reference
Inheritance diagram for Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >:
Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >

Public Member Functions

 CubatureSparse (const int degree)
 
virtual void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights) const
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).
 
virtual void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellCoords) const
 Returns cubature points and weights. Method for physical space cubature, throws an exception.
 
virtual int getNumPoints () const
 Returns the number of cubature points.
 
virtual int getDimension () const
 Returns dimension of the integration domain.
 
virtual void getAccuracy (std::vector< int > &accuracy) const
 Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly).
 
virtual void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights) const =0
 Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).
 
virtual void getCubature (ArrayPoint &cubPoints, ArrayWeight &cubWeights, ArrayPoint &cellVertices) const =0
 Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated).
 
virtual int getNumPoints () const =0
 Returns the number of cubature points.
 
virtual int getDimension () const =0
 Returns dimension of the integration domain.
 
virtual void getAccuracy (std::vector< int > &accuracy) const =0
 Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly). For tensor-product or sparse rules, algebraic accuracy for each coordinate direction is returned.
 

Private Attributes

int level_
 
int numPoints_
 
const int degree_
 

Detailed Description

template<class Scalar, int dimension_, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
class Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >

Definition at line 75 of file Intrepid_CubatureSparse.hpp.

Constructor & Destructor Documentation

◆ ~CubatureSparse()

template<class Scalar , int dimension_, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::~CubatureSparse ( )
inline

Definition at line 87 of file Intrepid_CubatureSparse.hpp.

◆ CubatureSparse()

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::CubatureSparse ( const int  degree)

Definition at line 57 of file Intrepid_CubatureSparseDef.hpp.

Member Function Documentation

◆ getAccuracy()

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::getAccuracy ( std::vector< int > &  accuracy) const
virtual

Returns algebraic accuracy (e.g. max. degree of polynomial that is integrated exactly).

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 174 of file Intrepid_CubatureSparseDef.hpp.

◆ getCubature() [1/2]

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights 
) const
virtual

Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).

Parameters
cubPoints[out] - Array containing the cubature points.
cubWeights[out] - Array of corresponding cubature weights.

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 137 of file Intrepid_CubatureSparseDef.hpp.

◆ getCubature() [2/2]

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
void Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::getCubature ( ArrayPoint &  cubPoints,
ArrayWeight &  cubWeights,
ArrayPoint &  cellCoords 
) const
virtual

Returns cubature points and weights. Method for physical space cubature, throws an exception.

Parameters
cubPoints[out] - Array containing the cubature points.
cubWeights[out] - Array of corresponding cubature weights.
cellCoords[in] - Array of cell coordinates

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 150 of file Intrepid_CubatureSparseDef.hpp.

◆ getDimension()

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
int Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::getDimension
virtual

Returns dimension of the integration domain.

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 167 of file Intrepid_CubatureSparseDef.hpp.

◆ getNumPoints()

template<class Scalar , int dimension_, class ArrayPoint , class ArrayWeight >
int Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::getNumPoints
virtual

Returns the number of cubature points.

Implements Intrepid::Cubature< Scalar, ArrayPoint, ArrayWeight >.

Definition at line 160 of file Intrepid_CubatureSparseDef.hpp.

Member Data Documentation

◆ degree_

template<class Scalar , int dimension_, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
const int Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::degree_
private

Definition at line 82 of file Intrepid_CubatureSparse.hpp.

◆ level_

template<class Scalar , int dimension_, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
int Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::level_
private

Definition at line 78 of file Intrepid_CubatureSparse.hpp.

◆ numPoints_

template<class Scalar , int dimension_, class ArrayPoint = FieldContainer<Scalar>, class ArrayWeight = ArrayPoint>
int Intrepid::CubatureSparse< Scalar, dimension_, ArrayPoint, ArrayWeight >::numPoints_
private

Definition at line 80 of file Intrepid_CubatureSparse.hpp.


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