Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::Parallel::VariableParallelOperationBase Class Referenceabstract

Interface for a class of parallel operations on variables. More...

#include <arcane/core/parallel/VariableParallelOperationBase.h>

Public Member Functions

 VariableParallelOperationBase (IParallelMng *pm)
virtual ~VariableParallelOperationBase ()
 Frees resources.
void build () override
 Constructs the instance.
void setItemFamily (IItemFamily *family) override
 Positions the entity family on which the operation is to be performed.
IItemFamilyitemFamily () override
 Entity family on which the operation is performed.
void addVariable (IVariable *variable) override
 Adds a variable to the list of variables concerned by the operation.
void applyOperation (IDataOperation *operation) override
 Applies the operation.
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
Public Member Functions inherited from Arcane::IVariableParallelOperation
virtual ~IVariableParallelOperation ()=default
 Releases resources.

Protected Member Functions

Array< SharedArray< ItemLocalId > > & _itemsToSend ()
virtual void _buildItemsToSend ()=0
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Interface for a class of parallel operations on variables.

These operations are collective.

Definition at line 41 of file VariableParallelOperationBase.h.

Constructor & Destructor Documentation

◆ VariableParallelOperationBase()

Arcane::Parallel::VariableParallelOperationBase::VariableParallelOperationBase ( IParallelMng * pm)

Definition at line 44 of file VariableParallelOperationBase.cc.

◆ ~VariableParallelOperationBase()

virtual Arcane::Parallel::VariableParallelOperationBase::~VariableParallelOperationBase ( )
inlinevirtual

Frees resources.

Definition at line 48 of file VariableParallelOperationBase.h.

Member Function Documentation

◆ _buildItemsToSend()

virtual void Arcane::Parallel::VariableParallelOperationBase::_buildItemsToSend ( )
protectedpure virtual

◆ _itemsToSend()

Array< SharedArray< ItemLocalId > > & Arcane::Parallel::VariableParallelOperationBase::_itemsToSend ( )
inlineprotected

Definition at line 63 of file VariableParallelOperationBase.h.

◆ addVariable()

void Arcane::Parallel::VariableParallelOperationBase::addVariable ( IVariable * variable)
overridevirtual

Adds a variable to the list of variables concerned by the operation.

Implements Arcane::IVariableParallelOperation.

Definition at line 75 of file VariableParallelOperationBase.cc.

References ARCANE_FATAL, Arcane::ItemGroup::itemFamily(), and Arcane::IVariable::itemGroup().

◆ applyOperation()

◆ build()

void Arcane::Parallel::VariableParallelOperationBase::build ( )
inlineoverridevirtual

Constructs the instance.

Implements Arcane::IVariableParallelOperation.

Definition at line 52 of file VariableParallelOperationBase.h.

◆ itemFamily()

IItemFamily * Arcane::Parallel::VariableParallelOperationBase::itemFamily ( )
overridevirtual

Entity family on which the operation is performed.

Implements Arcane::IVariableParallelOperation.

Definition at line 66 of file VariableParallelOperationBase.cc.

Referenced by Arcane::Parallel::GhostItemsVariableParallelOperation::_buildItemsToSend(), and applyOperation().

◆ setItemFamily()

void Arcane::Parallel::VariableParallelOperationBase::setItemFamily ( IItemFamily * family)
overridevirtual

Positions the entity family on which the operation is to be performed.

The family must be positioned before adding variables. It can only be done once.

Implements Arcane::IVariableParallelOperation.

Definition at line 55 of file VariableParallelOperationBase.cc.

References ARCANE_FATAL.


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