v0.9.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 (const MOFEMuuid &uuid, BaseFunctionUnknownInterface **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::BaseFunctionCtx
 BaseFunctionCtx ()
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=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)
 

Detailed Description

Class used to give arguments to Legendre base functions.

Definition at line 32 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 47 of file LegendrePolynomial.hpp.

50  : P(p), diffS(diff_s), dIm(dim), baseFunPtr(base_fun_ptr),
51  baseDiffFunPtr(base_diff_fun_ptr),
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 > baseFunPtr
boost::shared_ptr< MatrixDouble > baseDiffFunPtr

◆ ~LegendrePolynomialCtx()

MoFEM::LegendrePolynomialCtx::~LegendrePolynomialCtx ( )

Definition at line 53 of file LegendrePolynomial.hpp.

53 {}

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::LegendrePolynomialCtx::query_interface ( const MOFEMuuid uuid,
BaseFunctionUnknownInterface **  iface 
) const
virtual

Reimplemented from MoFEM::BaseFunctionCtx.

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

Definition at line 22 of file LegendrePolynomial.cpp.

23  {
24 
26  *iface = NULL;
27  if (uuid == IDD_LEGENDRE_BASE_FUNCTION) {
28  *iface = const_cast<LegendrePolynomialCtx *>(this);
30  } else {
31  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
32  }
34  CHKERRG(ierr);
36 }
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:501
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:544
static const MOFEMuuid IDD_LEGENDRE_BASE_FUNCTION
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

Member Data Documentation

◆ baseDiffFunPtr

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

Definition at line 41 of file LegendrePolynomial.hpp.

◆ baseFunPtr

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

Definition at line 40 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 43 of file LegendrePolynomial.hpp.

◆ diffS

double* MoFEM::LegendrePolynomialCtx::diffS

Definition at line 38 of file LegendrePolynomial.hpp.

◆ dIm

int MoFEM::LegendrePolynomialCtx::dIm

Definition at line 39 of file LegendrePolynomial.hpp.

◆ P

int MoFEM::LegendrePolynomialCtx::P

Definition at line 37 of file LegendrePolynomial.hpp.


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