v0.14.0
BaseFunction.cpp
Go to the documentation of this file.
1 /** \file BaseFunction.cpp
2  * \brief implementation of multi-grid solver for p- adaptivity
3  */
4 
5 
6 
7 namespace MoFEM {
8 
10 BaseFunctionCtx::query_interface(boost::typeindex::type_index type_index,
11  UnknownInterface **iface) const {
12  *iface = const_cast<BaseFunctionCtx *>(this);
13  return 0;
14 }
15 
17 BaseFunction::query_interface(boost::typeindex::type_index type_index,
18  UnknownInterface **iface) const {
19  *iface = const_cast<BaseFunction *>(this);
20  return 0;
21 }
22 
25  boost::shared_ptr<BaseFunctionCtx> ctx_ptr) {
27  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
28  "BaseFunction has not valid implementation of any shape function");
30 }
31 
34  boost::shared_ptr<BaseFunctionCtx> ctx_ptr) {
36  SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
37  "BaseFunction has not valid implementation of any shape function");
39 }
40 
41 } // namespace MoFEM
UBlasMatrix< double >
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
MoFEM::BaseFunction::query_interface
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, MoFEM::UnknownInterface **iface) const
Definition: BaseFunction.cpp:17
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
MoFEM::BaseFunction
Base class if inherited used to calculate base functions.
Definition: BaseFunction.hpp:40
MoFEM::BaseFunctionCtx::query_interface
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const
Definition: BaseFunction.cpp:10
MoFEM::BaseFunctionCtx
Base class used to exchange data between element data structures and class calculating base functions...
Definition: BaseFunction.hpp:28
MoFEM::BaseFunction::getValue
virtual MoFEMErrorCode getValue(MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
Definition: BaseFunction.cpp:24
MoFEM
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:10
MoFEM::UnknownInterface
base class for all interface classes
Definition: UnknownInterface.hpp:34
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:453
MOFEM_NOT_IMPLEMENTED
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32