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:
Collaboration diagram for MoFEM::JacobiPolynomialCtx:

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, BaseFunctionUnknownInterface **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 ()
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default

Public Attributes

int P
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)

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)
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,
BaseFunctionUnknownInterface **  iface 
) const

Reimplemented from MoFEM::BaseFunctionCtx.

Reimplemented in MoFEM::IntegratedJacobiPolynomialCtx.

Definition at line 20 of file JacobiPolynomial.cpp.

21  {
23  *iface = NULL;
24  if (uuid == IDD_JACOBI_BASE_FUNCTION) {
25  *iface = const_cast<JacobiPolynomialCtx *>(this);
27  } else {
29  }
31  CHKERRG(ierr);
33 }
MoFEMErrorCode query_interface(const MOFEMuuid &uuid, BaseFunctionUnknownInterface **iface) const
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:507
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:550
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:514

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: