Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshPartInfo.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* MeshPartInfo.cc (C) 2000-2018 */
9/* */
10/* Informations sur la partie d'un maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/MeshPartInfo.h"
15#include "arcane/IParallelMng.h"
16#include "arcane/IParallelReplication.h"
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arcane
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27extern "C++" MeshPartInfo
28makeMeshPartInfoFromParallelMng(IParallelMng* pm)
29{
30 return MeshPartInfo(pm->commRank(),pm->commSize(),
31 pm->replication()->replicationRank(),
32 pm->replication()->nbReplication());
33}
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
38} // End namespace Arcane
39
40/*---------------------------------------------------------------------------*/
41/*---------------------------------------------------------------------------*/
42
virtual Int32 commRank() const =0
Rang de cette instance dans le communicateur.
virtual IParallelReplication * replication() const =0
Informations sur la réplication.
virtual Int32 commSize() const =0
Nombre d'instance dans le communicateur.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-