Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IVariableSynchronizerMpiCommunicator.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* IVariableSynchronizerMpiCommunicator.h (C) 2000-2022 */
9/* */
10/* Interface of a specific MPI communicator for synchronizations. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_PARALLEL_MPI_IVARIABLESYNCHRONIZERMPICOMMUNICATOR_H
13#define ARCANE_PARALLEL_MPI_IVARIABLESYNCHRONIZERMPICOMMUNICATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/parallel/mpi/ArcaneMpi.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
38{
39 public:
40
41 virtual ~IVariableSynchronizerMpiCommunicator() = default;
42
43 public:
44
46 virtual void compute(VariableSynchronizer* var_syncer) = 0;
47
54 virtual MPI_Comm communicator() const = 0;
55};
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60} // End namespace Arcane
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif
Interface of a specific MPI communicator for synchronizations.
virtual void compute(VariableSynchronizer *var_syncer)=0
Calculates the specific communicator.
virtual MPI_Comm communicator() const =0
Retrieves the specific communicator from the topology.
Interface of a variable synchronization service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --