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

#include <src/petsc/DMCtxImpl.hpp>

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

Public Member Functions

 DMCtxImpl ()
 
int useCount ()
 
int incrementReference ()
 
- Public Member Functions inherited from MoFEM::DMCtx
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

int rAnk = -1
 
int sIze = -1
 
int verbosity = VERBOSE
 verbosity More...
 
int referenceNumber = 0
 
PetscBool isSubDM = PETSC_FALSE
 
std::vector< std::string > rowSubFields
 
std::vector< std::string > colSubFields
 
const ProblemproblemMainOfSubPtr
 pointer to main problem to sub-problem More...
 
PetscBool isCompDM = PETSC_FALSE
 
std::vector< std::string > rowCompPrb
 
std::vector< std::string > colCompPrb
 
std::map< std::string, boost::shared_ptr< Range > > mapTypeRow
 
std::map< std::string, boost::shared_ptr< Range > > mapTypeCol
 
PetscBool isPartitioned = PETSC_FALSE
 true if read mesh is on parts More...
 
PetscBool isSquareMatrix = PETSC_TRUE
 true if rows equals to cols More...
 
PetscBool destroyProblem = PETSC_FALSE
 If true destroy problem with DM. More...
 
PetscBool isProblemBuild = PETSC_FALSE
 True if problem is build. More...
 
InterfacemField_ptr = nullptr
 MoFEM interface. More...
 
const ProblemproblemPtr = nullptr
 pointer to problem data structure More...
 
std::string problemName
 Problem name. More...
 
boost::shared_ptr< BlockStructureblocMatDataPtr
 
boost::shared_ptr< NestSchurDatanestedSchurDataPtr
 
- Public Attributes inherited from MoFEM::DMCtx
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...
 

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...
 
- Protected Member Functions inherited from MoFEM::DMCtx
 DMCtx ()=default
 

Detailed Description

Definition at line 10 of file DMCtxImpl.hpp.

Constructor & Destructor Documentation

◆ DMCtxImpl()

MoFEM::DMCtxImpl::DMCtxImpl ( )

Definition at line 25 of file DMMoFEM.cpp.

25  : DMCtx() {
26  if (!LogManager::checkIfChannelExist("DMWORLD")) {
27  auto core_log = logging::core::get();
28  core_log->add_sink(
30  core_log->add_sink(
32  core_log->add_sink(
34  LogManager::setLog("DMWORLD");
35  LogManager::setLog("DMSYNC");
36  LogManager::setLog("DMSELF");
37  MOFEM_LOG_TAG("DMWORLD", "DM");
38  MOFEM_LOG_TAG("DMSYNC", "DM");
39  MOFEM_LOG_TAG("DMSELF", "DM");
40  }
41 }

Member Function Documentation

◆ incrementReference()

int MoFEM::DMCtxImpl::incrementReference ( )
inline

Definition at line 15 of file DMCtxImpl.hpp.

15 { return ++referenceNumber; }

◆ useCount()

int MoFEM::DMCtxImpl::useCount ( )
inline

Definition at line 14 of file DMCtxImpl.hpp.

14 { return referenceNumber; }

Member Data Documentation

◆ blocMatDataPtr

boost::shared_ptr<BlockStructure> MoFEM::DMCtxImpl::blocMatDataPtr

Definition at line 48 of file DMCtxImpl.hpp.

◆ colCompPrb

std::vector<std::string> MoFEM::DMCtxImpl::colCompPrb

Definition at line 31 of file DMCtxImpl.hpp.

◆ colSubFields

std::vector<std::string> MoFEM::DMCtxImpl::colSubFields

Definition at line 26 of file DMCtxImpl.hpp.

◆ destroyProblem

PetscBool MoFEM::DMCtxImpl::destroyProblem = PETSC_FALSE

If true destroy problem with DM.

Definition at line 38 of file DMCtxImpl.hpp.

◆ isCompDM

PetscBool MoFEM::DMCtxImpl::isCompDM = PETSC_FALSE

Definition at line 29 of file DMCtxImpl.hpp.

◆ isPartitioned

PetscBool MoFEM::DMCtxImpl::isPartitioned = PETSC_FALSE

true if read mesh is on parts

Definition at line 36 of file DMCtxImpl.hpp.

◆ isProblemBuild

PetscBool MoFEM::DMCtxImpl::isProblemBuild = PETSC_FALSE

True if problem is build.

Definition at line 39 of file DMCtxImpl.hpp.

◆ isSquareMatrix

PetscBool MoFEM::DMCtxImpl::isSquareMatrix = PETSC_TRUE

true if rows equals to cols

Definition at line 37 of file DMCtxImpl.hpp.

◆ isSubDM

PetscBool MoFEM::DMCtxImpl::isSubDM = PETSC_FALSE

Definition at line 24 of file DMCtxImpl.hpp.

◆ mapTypeCol

std::map<std::string, boost::shared_ptr<Range> > MoFEM::DMCtxImpl::mapTypeCol

Definition at line 33 of file DMCtxImpl.hpp.

◆ mapTypeRow

std::map<std::string, boost::shared_ptr<Range> > MoFEM::DMCtxImpl::mapTypeRow

Definition at line 32 of file DMCtxImpl.hpp.

◆ mField_ptr

Interface* MoFEM::DMCtxImpl::mField_ptr = nullptr

MoFEM interface.

Definition at line 41 of file DMCtxImpl.hpp.

◆ nestedSchurDataPtr

boost::shared_ptr<NestSchurData> MoFEM::DMCtxImpl::nestedSchurDataPtr

Definition at line 49 of file DMCtxImpl.hpp.

◆ problemMainOfSubPtr

const Problem* MoFEM::DMCtxImpl::problemMainOfSubPtr

pointer to main problem to sub-problem

Definition at line 27 of file DMCtxImpl.hpp.

◆ problemName

std::string MoFEM::DMCtxImpl::problemName

Problem name.

Definition at line 45 of file DMCtxImpl.hpp.

◆ problemPtr

const Problem* MoFEM::DMCtxImpl::problemPtr = nullptr

pointer to problem data structure

Definition at line 44 of file DMCtxImpl.hpp.

◆ rAnk

int MoFEM::DMCtxImpl::rAnk = -1

Definition at line 17 of file DMCtxImpl.hpp.

◆ referenceNumber

int MoFEM::DMCtxImpl::referenceNumber = 0

Definition at line 21 of file DMCtxImpl.hpp.

◆ rowCompPrb

std::vector<std::string> MoFEM::DMCtxImpl::rowCompPrb

Definition at line 30 of file DMCtxImpl.hpp.

◆ rowSubFields

std::vector<std::string> MoFEM::DMCtxImpl::rowSubFields

Definition at line 25 of file DMCtxImpl.hpp.

◆ sIze

int MoFEM::DMCtxImpl::sIze = -1

Definition at line 18 of file DMCtxImpl.hpp.

◆ verbosity

int MoFEM::DMCtxImpl::verbosity = VERBOSE

verbosity

Definition at line 20 of file DMCtxImpl.hpp.


The documentation for this struct was generated from the following files:
MoFEM::LogManager::checkIfChannelExist
static bool checkIfChannelExist(const std::string channel)
Check if channel exist.
Definition: LogManager.cpp:404
MoFEM::LogManager::createSink
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
Definition: LogManager.cpp:298
MoFEM::LogManager::getStrmSync
static boost::shared_ptr< std::ostream > getStrmSync()
Get the strm sync object.
Definition: LogManager.cpp:348
MoFEM::LogManager::getStrmWorld
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
Definition: LogManager.cpp:344
MoFEM::DMCtxImpl::referenceNumber
int referenceNumber
Definition: DMCtxImpl.hpp:21
MoFEM::LogManager::getStrmSelf
static boost::shared_ptr< std::ostream > getStrmSelf()
Get the strm self object.
Definition: LogManager.cpp:340
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
MoFEM::DMCtx::DMCtx
DMCtx()=default
MoFEM::LogManager::setLog
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
Definition: LogManager.cpp:389