Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Materials::MeshMaterialSynchronizer Class Reference

Synchronization of the list of materials/media of entities. More...

#include <arcane/materials/internal/MeshMaterialSynchronizer.h>

Inheritance diagram for Arcane::Materials::MeshMaterialSynchronizer:
Collaboration diagram for Arcane::Materials::MeshMaterialSynchronizer:

Public Member Functions

 MeshMaterialSynchronizer (IMeshMaterialMng *material_mng)
bool synchronizeMaterialsInCells ()
 Synchronization of the list of materials/media of entities.
void checkMaterialsInCells (Integer max_print)
 Checks that material cells are consistent between subdomains. This method is collective.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () 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

Private Member Functions

void _checkComponents (VariableCellInt32 &indexes, ConstArrayView< IMeshComponent * > components, Integer max_print)
void _checkComponentsInGhostCells (VariableCellInt64 &hashes, Integer max_print)

Private Attributes

IMeshMaterialSynchronizerImplm_synchronizer
IMeshMaterialMngm_material_mng

Additional Inherited Members

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

Detailed Description

Synchronization of the list of materials/media of entities.

This class allows synchronization between subdomains of the list of materials/media to which a cell belongs.

The ghost cells of this subdomain will retrieve the owned cells and their list of materials/media. These ghost cells will then potentially be added or removed from the current materials and media to be consistent with this list derived from the owned cells.

Definition at line 52 of file MeshMaterialSynchronizer.h.

Constructor & Destructor Documentation

◆ MeshMaterialSynchronizer()

Arcane::Materials::MeshMaterialSynchronizer::MeshMaterialSynchronizer ( IMeshMaterialMng * material_mng)
explicit

Definition at line 37 of file MeshMaterialSynchronizer.cc.

◆ ~MeshMaterialSynchronizer()

Arcane::Materials::MeshMaterialSynchronizer::~MeshMaterialSynchronizer ( )

Definition at line 55 of file MeshMaterialSynchronizer.cc.

Member Function Documentation

◆ _checkComponents()

void Arcane::Materials::MeshMaterialSynchronizer::_checkComponents ( VariableCellInt32 & indexes,
ConstArrayView< IMeshComponent * > components,
Integer max_print )
private

Definition at line 109 of file MeshMaterialSynchronizer.cc.

◆ _checkComponentsInGhostCells()

void Arcane::Materials::MeshMaterialSynchronizer::_checkComponentsInGhostCells ( VariableCellInt64 & hashes,
Integer max_print )
private

Definition at line 153 of file MeshMaterialSynchronizer.cc.

◆ checkMaterialsInCells()

void Arcane::Materials::MeshMaterialSynchronizer::checkMaterialsInCells ( Integer max_print)

Checks that material cells are consistent between subdomains. This method is collective.

Definition at line 77 of file MeshMaterialSynchronizer.cc.

References Arcane::TraceAccessor::info().

Here is the call graph for this function:

◆ synchronizeMaterialsInCells()

bool Arcane::Materials::MeshMaterialSynchronizer::synchronizeMaterialsInCells ( )

Synchronization of the list of materials/media of entities.

This operation is collective.

Returns true if cells have been added or removed from a material or a medium during this operation for this subdomain.

Definition at line 64 of file MeshMaterialSynchronizer.cc.

Member Data Documentation

◆ m_material_mng

IMeshMaterialMng* Arcane::Materials::MeshMaterialSynchronizer::m_material_mng
private

Definition at line 76 of file MeshMaterialSynchronizer.h.

◆ m_synchronizer

IMeshMaterialSynchronizerImpl* Arcane::Materials::MeshMaterialSynchronizer::m_synchronizer
private

Definition at line 75 of file MeshMaterialSynchronizer.h.


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