v0.9.0
Public Member Functions | List of all members
MoFEM::IntegratedJacobiPolynomial Struct Reference

#include <src/approximation/JacobiPolynomial.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, BaseFunctionUnknownInterface **iface) const
 
 IntegratedJacobiPolynomial ()
 
 ~IntegratedJacobiPolynomial ()
 
MoFEMErrorCode getValue (MatrixDouble &pts_x, MatrixDouble &pts_t, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
- Public Member Functions inherited from MoFEM::JacobiPolynomial
 JacobiPolynomial ()
 
 ~JacobiPolynomial ()
 
- Public Member Functions inherited from MoFEM::BaseFunction
 BaseFunction ()
 
virtual MoFEMErrorCode getValue (MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
- Public Member Functions inherited from MoFEM::BaseFunctionUnknownInterface
virtual ~BaseFunctionUnknownInterface ()=default
 

Detailed Description

Definition at line 97 of file JacobiPolynomial.hpp.

Constructor & Destructor Documentation

◆ IntegratedJacobiPolynomial()

MoFEM::IntegratedJacobiPolynomial::IntegratedJacobiPolynomial ( )

Definition at line 102 of file JacobiPolynomial.hpp.

◆ ~IntegratedJacobiPolynomial()

MoFEM::IntegratedJacobiPolynomial::~IntegratedJacobiPolynomial ( )

Definition at line 103 of file JacobiPolynomial.hpp.

103 {}

Member Function Documentation

◆ getValue()

MoFEMErrorCode MoFEM::IntegratedJacobiPolynomial::getValue ( MatrixDouble pts_x,
MatrixDouble pts_t,
boost::shared_ptr< BaseFunctionCtx ctx_ptr 
)
virtual

Reimplemented from MoFEM::JacobiPolynomial.

Definition at line 117 of file JacobiPolynomial.cpp.

119  {
121  BaseFunctionUnknownInterface *iface;
122  CHKERR ctx_ptr->query_interface(IDD_INTEGRATED_JACOBI_BASE_FUNCTION, &iface);
123  IntegratedJacobiPolynomialCtx *ctx =
124  reinterpret_cast<IntegratedJacobiPolynomialCtx *>(iface);
125  CHKERR get_value(pts_x, pts_t, ctx);
127 }
static const MOFEMuuid IDD_INTEGRATED_JACOBI_BASE_FUNCTION
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407
static MoFEMErrorCode get_value(MatrixDouble &pts_x, MatrixDouble &pts_t, TYPE *ctx)

◆ query_interface()

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

Reimplemented from MoFEM::JacobiPolynomial.

Definition at line 102 of file JacobiPolynomial.cpp.

103  {
105  *iface = NULL;
107  *iface = const_cast<IntegratedJacobiPolynomial *>(this);
109  } else {
110  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
111  }
112  ierr = BaseFunction::query_interface(uuid, iface);
113  CHKERRG(ierr);
115 }
static const MOFEMuuid IDD_INTEGRATED_JACOBI_BASE_FUNCTION
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
MoFEMErrorCode query_interface(const MOFEMuuid &uuid, MoFEM::BaseFunctionUnknownInterface **iface) const
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:544
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508

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