v0.14.0
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 ()
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference 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 
)
inline

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),

◆ ~LegendrePolynomialCtx()

MoFEM::LegendrePolynomialCtx::~LegendrePolynomialCtx ( )
inline

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::KernelLobattoPolynomialCtx, and MoFEM::LobattoPolynomialCtx.

Definition at line 7 of file LegendrePolynomial.cpp.

9  {
10  *iface = const_cast<LegendrePolynomialCtx *>(this);
11  return 0;
12 }

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:
MoFEM::LegendrePolynomialCtx::basePolynomialsType0
PetscErrorCode(* basePolynomialsType0)(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Definition: LegendrePolynomial.hpp:28
MoFEM::LegendrePolynomialCtx::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: LegendrePolynomial.hpp:32
MoFEM::LegendrePolynomialCtx::baseFunPtr
boost::shared_ptr< MatrixDouble > baseFunPtr
Definition: LegendrePolynomial.hpp:25
MoFEM::LegendrePolynomialCtx::diffS
double * diffS
Definition: LegendrePolynomial.hpp:23
MoFEM::LegendrePolynomialCtx::baseDiffFunPtr
boost::shared_ptr< MatrixDouble > baseDiffFunPtr
Definition: LegendrePolynomial.hpp:26
Legendre_polynomials
PetscErrorCode Legendre_polynomials(int p, double s, double *diff_s, double *L, double *diffL, const int dim)
Calculate Legendre approximation basis.
Definition: base_functions.c:15
MoFEM::LegendrePolynomialCtx::dIm
int dIm
Definition: LegendrePolynomial.hpp:24
MoFEM::LegendrePolynomialCtx::P
int P
Definition: LegendrePolynomial.hpp:22