v0.13.1
Public Member Functions | Public Attributes | List of all members
MoFEM::LegendrePolynomialCtx Struct Reference

Class used to give arguments to Legendre base functions. More...

#include <src/approximation/LegendrePolynomial.hpp>

Inheritance diagram for MoFEM::LegendrePolynomialCtx:
[legend]
Collaboration diagram for MoFEM::LegendrePolynomialCtx:
[legend]

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
 LegendrePolynomialCtx (int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)
 
 ~LegendrePolynomialCtx ()
 
MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0
 
virtual ~BaseFunctionUnknownInterface ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
virtual MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const =0
 
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface refernce to pointer of interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface. More...
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface. More...
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface. More...
 
virtual ~UnknownInterface ()=default
 

Public Attributes

int P
 
doublediffS
 
int dIm
 
boost::shared_ptr< MatrixDoublebaseFunPtr
 
boost::shared_ptr< MatrixDoublebaseDiffFunPtr
 
PetscErrorCode(* basePolynomialsType0 )(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
 

Additional Inherited Members

- Static Public Member Functions inherited from MoFEM::UnknownInterface
static MoFEMErrorCode getLibVersion (Version &version)
 Get library version. More...
 
static MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version)
 Get database major version. More...
 
static MoFEMErrorCode setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD))
 Get database major version. More...
 
static MoFEMErrorCode getInterfaceVersion (Version &version)
 Get database major version. More...
 

Detailed Description

Class used to give arguments to Legendre base functions.

Definition at line 17 of file LegendrePolynomial.hpp.

Constructor & Destructor Documentation

◆ LegendrePolynomialCtx()

MoFEM::LegendrePolynomialCtx::LegendrePolynomialCtx ( int  p,
double diff_s,
int  dim,
boost::shared_ptr< MatrixDouble base_fun_ptr,
boost::shared_ptr< MatrixDouble base_diff_fun_ptr 
)

Definition at line 32 of file LegendrePolynomial.hpp.

35 : P(p), diffS(diff_s), dIm(dim), baseFunPtr(base_fun_ptr),
36 baseDiffFunPtr(base_diff_fun_ptr),
static Index< 'p', 3 > p
const int dim
PetscErrorCode Legendre_polynomials(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Calculate Legendre approximation basis.
PetscErrorCode(* basePolynomialsType0)(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
boost::shared_ptr< MatrixDouble > baseDiffFunPtr
boost::shared_ptr< MatrixDouble > baseFunPtr

◆ ~LegendrePolynomialCtx()

MoFEM::LegendrePolynomialCtx::~LegendrePolynomialCtx ( )

Definition at line 38 of file LegendrePolynomial.hpp.

38{}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::LegendrePolynomialCtx::query_interface ( boost::typeindex::type_index  type_index,
UnknownInterface **  iface 
) const
virtual

Reimplemented from MoFEM::BaseFunctionCtx.

Reimplemented in MoFEM::LobattoPolynomialCtx, and MoFEM::KernelLobattoPolynomialCtx.

Definition at line 7 of file LegendrePolynomial.cpp.

9 {
10 *iface = const_cast<LegendrePolynomialCtx *>(this);
11 return 0;
12}
LegendrePolynomialCtx(int p, double *diff_s, int dim, boost::shared_ptr< MatrixDouble > base_fun_ptr, boost::shared_ptr< MatrixDouble > base_diff_fun_ptr)

Member Data Documentation

◆ baseDiffFunPtr

boost::shared_ptr<MatrixDouble> MoFEM::LegendrePolynomialCtx::baseDiffFunPtr

Definition at line 26 of file LegendrePolynomial.hpp.

◆ baseFunPtr

boost::shared_ptr<MatrixDouble> MoFEM::LegendrePolynomialCtx::baseFunPtr

Definition at line 25 of file LegendrePolynomial.hpp.

◆ basePolynomialsType0

PetscErrorCode(* MoFEM::LegendrePolynomialCtx::basePolynomialsType0) (int p, double s, double *diff_s, double *L, double *diffL, const int dim)

Definition at line 28 of file LegendrePolynomial.hpp.

◆ diffS

double* MoFEM::LegendrePolynomialCtx::diffS

Definition at line 23 of file LegendrePolynomial.hpp.

◆ dIm

int MoFEM::LegendrePolynomialCtx::dIm

Definition at line 24 of file LegendrePolynomial.hpp.

◆ P

int MoFEM::LegendrePolynomialCtx::P

Definition at line 22 of file LegendrePolynomial.hpp.


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