v0.14.0
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MoFEM::DMCtx Struct Reference

PETSc Discrete Manager data structure. More...

#include <src/petsc/DMMoFEM.hpp>

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

Public Member Functions

MoFEMErrorCode query_interface (boost::typeindex::type_index type_index, UnknownInterface **iface) const
 
virtual ~DMCtx ()=default
 
- Public Member Functions inherited from MoFEM::UnknownInterface
template<class IFACE >
MoFEMErrorCode registerInterface (bool error_if_registration_failed=true)
 Register interface. More...
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference 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 ()=default
 

Public Attributes

boost::shared_ptr< KspCtxkspCtx
 data structure KSP More...
 
boost::shared_ptr< SnesCtxsnesCtx
 data structure SNES More...
 
boost::shared_ptr< TsCtxtsCtx
 data structure for TS solver More...
 

Protected Member Functions

 DMCtx ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from MoFEM::UnknownInterface
static MoFEMErrorCode getLibVersion (Version &version)
 Get library version. More...
 
static MoFEMErrorCode getFileVersion (moab::Interface &moab, Version &version)
 Get database major version. More...
 
static MoFEMErrorCode setFileVersion (moab::Interface &moab, Version version=Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD))
 Get database major version. More...
 
static MoFEMErrorCode getInterfaceVersion (Version &version)
 Get database major version. More...
 

Detailed Description

PETSc Discrete Manager data structure.

This structure should not be accessed or modified by user. Is not available from outside MoFEM DM manager. However user can inherit dat class and add data for additional functionality.

This is part of implementation for PETSc interface, see more details in http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/index.html

Definition at line 1012 of file DMMoFEM.hpp.

Constructor & Destructor Documentation

◆ ~DMCtx()

virtual MoFEM::DMCtx::~DMCtx ( )
virtualdefault

◆ DMCtx()

MoFEM::DMCtx::DMCtx ( )
protecteddefault

Member Function Documentation

◆ query_interface()

MoFEMErrorCode MoFEM::DMCtx::query_interface ( boost::typeindex::type_index  type_index,
UnknownInterface **  iface 
) const
virtual

Implements MoFEM::UnknownInterface.

Reimplemented in MoFEM::DMMGViaApproxOrdersCtx.

Definition at line 19 of file DMMoFEM.cpp.

20  {
21  *iface = const_cast<DMCtx *>(this);
22  return 0;
23 }

Member Data Documentation

◆ kspCtx

boost::shared_ptr<KspCtx> MoFEM::DMCtx::kspCtx

data structure KSP

Definition at line 1019 of file DMMoFEM.hpp.

◆ snesCtx

boost::shared_ptr<SnesCtx> MoFEM::DMCtx::snesCtx

data structure SNES

Definition at line 1020 of file DMMoFEM.hpp.

◆ tsCtx

boost::shared_ptr<TsCtx> MoFEM::DMCtx::tsCtx

data structure for TS solver

Definition at line 1021 of file DMMoFEM.hpp.


The documentation for this struct was generated from the following files:
MoFEM::DMCtx::DMCtx
DMCtx()=default