Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshPartInfo.cc
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/* MeshPartInfo.cc (C) 2000-2018 */
9/* */
10/* Mesh part information. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/MeshPartInfo.h"
15#include "arcane/core/IParallelMng.h"
16#include "arcane/core/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/*---------------------------------------------------------------------------*/
Interface of the parallelism manager for a subdomain.
Information about a partitioned mesh.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --