Arcane  v3.14.10.0
Documentation utilisateur
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
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-