v0.14.0
Loading...
Searching...
No Matches
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
7namespace MoFEM {
8
10BaseFunctionCtx::query_interface(boost::typeindex::type_index type_index,
11 UnknownInterface **iface) const {
12 *iface = const_cast<BaseFunctionCtx *>(this);
13 return 0;
14}
15
17BaseFunction::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
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:56
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:10
Base class used to exchange data between element data structures and class calculating base functions...
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, UnknownInterface **iface) const
Base class if inherited used to calculate base functions.
MoFEMErrorCode query_interface(boost::typeindex::type_index type_index, MoFEM::UnknownInterface **iface) const
virtual MoFEMErrorCode getValue(MatrixDouble &pts, boost::shared_ptr< BaseFunctionCtx > ctx_ptr)
base class for all interface classes