Arcane  4.2.3.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::mesh::MeshExchangeMng Class Reference

Interface for the mesh exchange manager between subdomains. More...

#include <arcane/mesh/MeshExchangeMng.h>

Inheritance diagram for Arcane::mesh::MeshExchangeMng:
Collaboration diagram for Arcane::mesh::MeshExchangeMng:

Public Member Functions

 MeshExchangeMng (IMesh *mesh)
IPrimaryMesh * mesh () const override
 Associated mesh.
IMeshExchanger * beginExchange () override
 Starts an exchange.
void endExchange () override
 Signals that the exchange is finished.
IMeshExchanger * exchanger () override
 Current exchanger.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessor & operator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMng * traceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IMeshExchangeMng
virtual ~IMeshExchangeMng ()=default
 Frees resources.

Protected Member Functions

virtual IMeshExchanger * _createExchanger ()
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Private Attributes

IMesh * m_mesh
IMeshExchanger * m_exchanger

Detailed Description

Interface for the mesh exchange manager between subdomains.

Definition at line 35 of file MeshExchangeMng.h.

Constructor & Destructor Documentation

◆ MeshExchangeMng()

Arcane::mesh::MeshExchangeMng::MeshExchangeMng ( IMesh * mesh)

Definition at line 31 of file MeshExchangeMng.cc.

◆ ~MeshExchangeMng()

Arcane::mesh::MeshExchangeMng::~MeshExchangeMng ( )

Definition at line 42 of file MeshExchangeMng.cc.

Member Function Documentation

◆ _createExchanger()

IMeshExchanger * Arcane::mesh::MeshExchangeMng::_createExchanger ( )
protectedvirtual

Definition at line 63 of file MeshExchangeMng.cc.

◆ beginExchange()

IMeshExchanger * Arcane::mesh::MeshExchangeMng::beginExchange ( )
overridevirtual

Starts an exchange.

Precondition
exchanger()==nullptr.

While an exchange is in progress, certain operations on the mesh are forbidden, such as creating a new family or adding groups.

Implements Arcane::IMeshExchangeMng.

Definition at line 50 of file MeshExchangeMng.cc.

References ARCANE_FATAL.

◆ endExchange()

void Arcane::mesh::MeshExchangeMng::endExchange ( )
overridevirtual

Signals that the exchange is finished.

This allows deallocating the structures associated with the exchange.

Postcondition
exchanger()==nullptr.

Implements Arcane::IMeshExchangeMng.

Definition at line 74 of file MeshExchangeMng.cc.

References ARCANE_FATAL.

◆ exchanger()

IMeshExchanger * Arcane::mesh::MeshExchangeMng::exchanger ( )
inlineoverridevirtual

Current exchanger.

The exchanger is non-null only if we are between a beginExchange() and an endExchange()

Implements Arcane::IMeshExchangeMng.

Definition at line 49 of file MeshExchangeMng.h.

◆ mesh()

IPrimaryMesh * Arcane::mesh::MeshExchangeMng::mesh ( ) const
overridevirtual

Associated mesh.

Implements Arcane::IMeshExchangeMng.

Definition at line 86 of file MeshExchangeMng.cc.

References Arcane::IMesh::toPrimaryMesh().

Here is the call graph for this function:

Member Data Documentation

◆ m_exchanger

IMeshExchanger* Arcane::mesh::MeshExchangeMng::m_exchanger
private

Definition at line 58 of file MeshExchangeMng.h.

◆ m_mesh

IMesh* Arcane::mesh::MeshExchangeMng::m_mesh
private

Definition at line 57 of file MeshExchangeMng.h.


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