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

Strategy for synchronizing the list of materials/media of entities. More...

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

Inheritance diagram for Arcane::Materials::LegacyMeshMaterialSynchronizerImpl:
Collaboration diagram for Arcane::Materials::LegacyMeshMaterialSynchronizerImpl:

Public Member Functions

 LegacyMeshMaterialSynchronizerImpl (IMeshMaterialMng *material_mng)
bool synchronizeMaterialsInCells ()
 Synchronization of the list of materials/media of entities.
void checkMaterialsInCells (Integer max_print)
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 _fillPresence (AllEnvCell all_env_cell, ByteArrayView presence)

Static Private Member Functions

static void _setBit (ByteArrayView bytes, Integer position)
static bool _hasBit (ByteConstArrayView bytes, Integer position)

Private Attributes

IMeshMaterialMngm_material_mng

Additional Inherited Members

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

Detailed Description

Strategy for synchronizing the list of materials/media of entities.

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

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

Definition at line 49 of file LegacyMeshMaterialSynchronizerImpl.h.

Constructor & Destructor Documentation

◆ LegacyMeshMaterialSynchronizerImpl()

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

Definition at line 35 of file LegacyMeshMaterialSynchronizerImpl.cc.

◆ ~LegacyMeshMaterialSynchronizerImpl()

Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::~LegacyMeshMaterialSynchronizerImpl ( )

Definition at line 45 of file LegacyMeshMaterialSynchronizerImpl.cc.

Member Function Documentation

◆ _fillPresence()

void Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::_fillPresence ( AllEnvCell all_env_cell,
ByteArrayView presence )
private

Definition at line 72 of file LegacyMeshMaterialSynchronizerImpl.cc.

◆ _hasBit()

bool Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::_hasBit ( ByteConstArrayView bytes,
Integer position )
inlinestaticprivate

Definition at line 61 of file LegacyMeshMaterialSynchronizerImpl.cc.

◆ _setBit()

void Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::_setBit ( ByteArrayView bytes,
Integer position )
inlinestaticprivate

Definition at line 53 of file LegacyMeshMaterialSynchronizerImpl.cc.

◆ synchronizeMaterialsInCells()

bool Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::synchronizeMaterialsInCells ( )
virtual

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.

Implements Arcane::Materials::IMeshMaterialSynchronizerImpl.

Definition at line 87 of file LegacyMeshMaterialSynchronizerImpl.cc.

References Arcane::Array< T >::add(), Arcane::Materials::MeshMaterialModifier::addCells(), ENUMERATE_CELL, Arcane::Array< T >::fill(), Arcane::ArrayView< T >::fill(), Arcane::TraceAccessor::info(), Arcane::Item::isOwn(), Arcane::Item::localId(), Arcane::Materials::MeshMaterialModifier::removeCells(), and Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

Member Data Documentation

◆ m_material_mng

IMeshMaterialMng* Arcane::Materials::LegacyMeshMaterialSynchronizerImpl::m_material_mng
private

Definition at line 73 of file LegacyMeshMaterialSynchronizerImpl.h.


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