v0.8.13
Public Member Functions | Public Attributes | List of all members
MoFEM::JacobiPolynomialCtx Struct Reference

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

#include <src/approximation/JacobiPolynomial.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, MoFEM::UnknownInterface **iface) const
 
 JacobiPolynomialCtx (int p, double *diff_x, double *diff_t, int dim, double alpha, boost::shared_ptr< MatrixDouble > &base_fun_ptr, boost::shared_ptr< MatrixDouble > &base_diff_fun_ptr)
 
 ~JacobiPolynomialCtx ()
 
- Public Member Functions inherited from MoFEM::BaseFunctionCtx
 BaseFunctionCtx ()
 
 ~BaseFunctionCtx ()
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (const MOFEMuuid &uuid, bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE , bool VERIFY = false>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, IFACE *&iface) const
 Get interface by uuid and return reference to pointer of 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 ()
 
virtual MoFEMErrorCode getLibVersion (Version &version) const
 Get library version. More...
 
virtual const MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version) const
 Get database major version. More...
 
virtual MoFEMErrorCode getInterfaceVersion (Version &version) const
 Get database major version. More...
 
template<>
MoFEMErrorCode getInterface (const MOFEMuuid &uuid, UnknownInterface *&iface) const
 

Public Attributes

int P
 
doublediffX
 
doublediffT
 
int dIm
 
double aLpha
 
boost::shared_ptr< MatrixDoublebaseFunPtr
 
boost::shared_ptr< MatrixDoublebaseDiffFunPtr
 
PetscErrorCode(* basePolynomialsType1 )(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
 

Additional Inherited Members

- Protected Member Functions inherited from MoFEM::UnknownInterface
boost::typeindex::type_index getClassIdx (const MOFEMuuid &uid) const
 Get type name for interface Id. More...
 
MOFEMuuid getUId (const boost::typeindex::type_index &class_idx) const
 Get interface Id for class name. More...
 

Detailed Description

Class used to give arguments to Legendre base functions.

Definition at line 32 of file JacobiPolynomial.hpp.

Constructor & Destructor Documentation

◆ JacobiPolynomialCtx()

MoFEM::JacobiPolynomialCtx::JacobiPolynomialCtx ( int  p,
double diff_x,
double diff_t,
int  dim,
double  alpha,
boost::shared_ptr< MatrixDouble > &  base_fun_ptr,
boost::shared_ptr< MatrixDouble > &  base_diff_fun_ptr 
)

Definition at line 52 of file JacobiPolynomial.hpp.

56  : P(p), diffX(diff_x), diffT(diff_t), dIm(dim), aLpha(alpha),
57  baseFunPtr(base_fun_ptr), baseDiffFunPtr(base_diff_fun_ptr),
PetscErrorCode Jacobi_polynomials(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
Calculate Jacobi approximation basis.
PetscErrorCode(* basePolynomialsType1)(int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)
boost::shared_ptr< MatrixDouble > baseDiffFunPtr
boost::shared_ptr< MatrixDouble > baseFunPtr

◆ ~JacobiPolynomialCtx()

MoFEM::JacobiPolynomialCtx::~JacobiPolynomialCtx ( )

Definition at line 59 of file JacobiPolynomial.hpp.

59 {}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::JacobiPolynomialCtx::query_interface ( const MOFEMuuid uuid,
MoFEM::UnknownInterface **  iface 
) const
virtual

Reimplemented from MoFEM::BaseFunctionCtx.

Reimplemented in MoFEM::IntegratedJacobiPolynomialCtx.

Definition at line 34 of file JacobiPolynomial.cpp.

35  {
37  *iface = NULL;
38  if (uuid == IDD_JACOBI_BASE_FUNCTION) {
39  *iface = const_cast<JacobiPolynomialCtx *>(this);
41  } else {
42  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
43  }
45  CHKERRG(ierr);
47 }
MoFEMErrorCode query_interface(const MOFEMuuid &uuid, MoFEM::UnknownInterface **iface) const
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:519
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:562
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:526
Class used to give arguments to Legendre base functions.
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
static const MOFEMuuid IDD_JACOBI_BASE_FUNCTION

Member Data Documentation

◆ aLpha

double MoFEM::JacobiPolynomialCtx::aLpha

Definition at line 42 of file JacobiPolynomial.hpp.

◆ baseDiffFunPtr

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

Definition at line 45 of file JacobiPolynomial.hpp.

◆ baseFunPtr

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

Definition at line 44 of file JacobiPolynomial.hpp.

◆ basePolynomialsType1

PetscErrorCode(* MoFEM::JacobiPolynomialCtx::basePolynomialsType1) (int p, double alpha, double x, double t, double *diff_x, double *diff_t, double *L, double *diffL, const int dim)

Definition at line 47 of file JacobiPolynomial.hpp.

◆ diffT

double* MoFEM::JacobiPolynomialCtx::diffT

Definition at line 39 of file JacobiPolynomial.hpp.

◆ diffX

double* MoFEM::JacobiPolynomialCtx::diffX

Definition at line 38 of file JacobiPolynomial.hpp.

◆ dIm

int MoFEM::JacobiPolynomialCtx::dIm

Definition at line 40 of file JacobiPolynomial.hpp.

◆ P

int MoFEM::JacobiPolynomialCtx::P

Definition at line 37 of file JacobiPolynomial.hpp.


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