v0.15.0
Loading...
Searching...
No Matches
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.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE *&iface) const
 Get interface reference to pointer of interface.
 
template<class IFACE >
MoFEMErrorCode getInterface (IFACE **const iface) const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_pointer< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get interface pointer to pointer of interface.
 
template<class IFACE , typename boost::enable_if< boost::is_reference< IFACE >, int >::type = 0>
IFACE getInterface () const
 Get reference to interface.
 
template<class IFACE >
IFACE * getInterface () const
 Function returning pointer to interface.
 
virtual ~UnknownInterface ()=default
 

Public Attributes

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

Protected Member Functions

 DMCtx ()=default
 

Additional Inherited Members

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

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 1015 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}
DMCtx()=default

Member Data Documentation

◆ kspCtx

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

data structure KSP

Definition at line 1022 of file DMMoFEM.hpp.

◆ snesCtx

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

data structure SNES

Definition at line 1023 of file DMMoFEM.hpp.

◆ tsCtx

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

data structure for TS solver

Definition at line 1024 of file DMMoFEM.hpp.


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