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

Calculating Legendre base functions. More...

#include <src/approximation/JacobiPolynomial.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (const MOFEMuuid &uuid, MoFEM::UnknownInterface **iface) const
 
 JacobiPolynomial ()
 
 ~JacobiPolynomial ()
 
MoFEMErrorCode getValue (MatrixDouble &pts_x, MatrixDouble &pts_t, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
- Public Member Functions inherited from MoFEM::BaseFunction
 BaseFunction ()
 
 ~BaseFunction ()
 
virtual MoFEMErrorCode getValue (MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
 
- 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
 

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

Calculating Legendre base functions.

Definition at line 66 of file JacobiPolynomial.hpp.

Constructor & Destructor Documentation

◆ JacobiPolynomial()

MoFEM::JacobiPolynomial::JacobiPolynomial ( )

Definition at line 71 of file JacobiPolynomial.hpp.

71 {}

◆ ~JacobiPolynomial()

MoFEM::JacobiPolynomial::~JacobiPolynomial ( )

Definition at line 72 of file JacobiPolynomial.hpp.

72 {}

Member Function Documentation

◆ getValue()

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

Reimplemented from MoFEM::BaseFunction.

Reimplemented in MoFEM::IntegratedJacobiPolynomial.

Definition at line 91 of file JacobiPolynomial.cpp.

92  {
95  CHKERR ctx_ptr->query_interface(IDD_JACOBI_BASE_FUNCTION, &iface);
96  JacobiPolynomialCtx *ctx = reinterpret_cast<JacobiPolynomialCtx *>(iface);
97  CHKERR get_value(pts_x, pts_t, ctx);
99 }
base class for all interface classes
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:495
Class used to give arguments to Legendre base functions.
static const MOFEMuuid IDD_JACOBI_BASE_FUNCTION
#define CHKERR
Inline error check.
Definition: definitions.h:614
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:439
static MoFEMErrorCode get_value(MatrixDouble &pts_x, MatrixDouble &pts_t, TYPE *ctx)

◆ query_interface()

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

Reimplemented from MoFEM::BaseFunction.

Reimplemented in MoFEM::IntegratedJacobiPolynomial.

Definition at line 50 of file JacobiPolynomial.cpp.

51  {
53  *iface = NULL;
54  if (uuid == IDD_JACOBI_BASE_FUNCTION) {
55  *iface = const_cast<JacobiPolynomial *>(this);
57  } else {
58  SETERRQ(PETSC_COMM_WORLD, MOFEM_DATA_INCONSISTENCY, "wrong interference");
59  }
60  ierr = BaseFunction::query_interface(uuid, iface);
61  CHKERRG(ierr);
63 }
#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
static MoFEMErrorCodeGeneric< PetscErrorCode > ierr
Definition: Common.hpp:80
static const MOFEMuuid IDD_JACOBI_BASE_FUNCTION
MoFEMErrorCode query_interface(const MOFEMuuid &uuid, MoFEM::UnknownInterface **iface) const
Calculating Legendre base functions.

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