Arcane  v3.16.6.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ITransferValuesParallelOperation.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* ITransferValuesParallelOperation.h (C) 2000-2025 */
9/* */
10/* Transfert de valeurs sur différents processeurs. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ITRANSFERVALUESPARALLELOPERATION_H
13#define ARCANE_CORE_ITRANSFERVALUESPARALLELOPERATION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Array.h"
18
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
104class ARCANE_CORE_EXPORT ITransferValuesParallelOperation
105{
106 public:
107
110
111 public:
112
114 virtual IParallelMng* parallelMng() = 0;
115
116 public:
117
119 virtual void setTransferRanks(Int32ConstArrayView ranks) = 0;
121 virtual void addArray(Int32ConstArrayView send_values, SharedArray<Int32> recv_value) = 0;
123 virtual void addArray(Int64ConstArrayView send_values, SharedArray<Int64> recv_values) = 0;
125 virtual void addArray(RealConstArrayView send_values, SharedArray<Real> recv_values) = 0;
131 virtual void transferValues() = 0;
132};
133
134/*---------------------------------------------------------------------------*/
135/*---------------------------------------------------------------------------*/
136
137} // namespace Arcane
138
139/*---------------------------------------------------------------------------*/
140/*---------------------------------------------------------------------------*/
141
142#endif
Déclarations des types généraux de Arcane.
Interface du gestionnaire de parallélisme pour un sous-domaine.
Envoie de valeurs sur différents processeurs.
virtual void addArray(Int32ConstArrayView send_values, SharedArray< Int32 > recv_value)=0
Ajoute un tableau de Int32.
virtual void addArray(RealConstArrayView send_values, SharedArray< Real > recv_values)=0
Ajoute un tableau de Int64.
virtual ~ITransferValuesParallelOperation()=default
Destructeur.
virtual void transferValues()=0
Envoie et réceptionne les valeurs.
virtual void addArray(Int64ConstArrayView send_values, SharedArray< Int64 > recv_values)=0
Ajoute un tableau de Int64.
virtual IParallelMng * parallelMng()=0
Gestionnaire de parallélisme associé
virtual void setTransferRanks(Int32ConstArrayView ranks)=0
Positionne le tableau indiquant à qui envoyer les valeurs.
Vecteur 1D de données avec sémantique par référence.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
ConstArrayView< Int32 > Int32ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 32 bits.
Definition UtilsTypes.h:569
ConstArrayView< Int64 > Int64ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 64 bits.
Definition UtilsTypes.h:567
ConstArrayView< Real > RealConstArrayView
Equivalent C d'un tableau à une dimension de réels.
Definition UtilsTypes.h:575