16#include "arcane/core/IVariableSynchronizer.h"
17#include "arcane/core/VariableSynchronizerEventArgs.h"
18#include "arcane/core/ItemGroup.h"
19#include "arcane/core/VariableCollection.h"
37class NullVariableSynchronizer
52 return m_parallel_mng;
59 ARCANE_UNUSED(old_to_new_ids);
64 if (m_on_synchronized.hasObservers()) {
66 m_on_synchronized.notify(args);
71 ARCANE_UNUSED(local_ids);
77 if (m_on_synchronized.hasObservers()) {
79 m_on_synchronized.notify(args);
84 ARCANE_UNUSED(local_ids);
100 ARCANE_UNUSED(index);
110 return m_on_synchronized;
123extern "C++" IVariableSynchronizer*
124createNullVariableSynchronizer(IParallelMng* pm,
const ItemGroup& group)
126 return new NullVariableSynchronizer(pm, group);
File containing event management mechanisms.
Base class for an event handler.
Interface of a data item.
Interface of the parallelism manager for a subdomain.
Interface of a variable synchronization service.
void synchronize(IVariable *var) override
Synchronizes the variable var in blocking mode.
void synchronize(IVariable *var, Int32ConstArrayView local_ids) override
Synchronizes the variable var on the entities local_ids in blocking mode.
Int32ConstArrayView sharedItems(Int32 index) override
List of local IDs of entities shared with a subdomain.
void synchronize(VariableCollection vars) override
Synchronizes the variables vars in blocking mode.
IParallelMng * parallelMng() override
Associated parallel manager.
const ItemGroup & itemGroup() override
Entity group used for synchronization.
void synchronize(VariableCollection vars, Int32ConstArrayView local_ids) override
Synchronizes the variables vars in blocking mode.
EventObservable< const VariableSynchronizerEventArgs & > & onSynchronized() override
Event sent at the beginning and end of synchronization.
void compute() override
Recalculates the synchronization information.
void synchronizeData(IData *data) override
Synchronizes the data data.
void changeLocalIds(Int32ConstArrayView old_to_new_ids) override
Called when the local IDs of the entities are modified.
Int32ConstArrayView ghostItems(Int32 index) override
List of local IDs of ghost entities with a subdomain.
Int32ConstArrayView communicatingRanks() override
Ranks of subdomains with which communication occurs.
Arguments for the event notifying a variable synchronization.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
std::int32_t Int32
Signed integer type of 32 bits.