Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshPartInfo.h
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.h (C) 2000-2018 */
9/* */
10/* Informations sur la partie d'un maillage. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESHPARTINFO_H
13#define ARCANE_MESHPARTINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25class IParallelMng;
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
32class ARCANE_CORE_EXPORT MeshPartInfo
33{
34 public:
35 MeshPartInfo(Int32 part_rank,Int32 nb_part,
37 : m_part_rank(part_rank), m_nb_part(nb_part),
38 m_replication_rank(replication_rank), m_nb_replication(nb_replication) {}
40 : m_part_rank(-1), m_nb_part(0),
41 m_replication_rank(-1), m_nb_replication(0) {}
42 public:
43 Int32 partRank() const { return m_part_rank; }
44 void setPartRank(Int32 v) { m_part_rank = v; }
45 Int32 nbPart() const { return m_nb_part; }
46 void setNbPart(Int32 v) { m_nb_part = v; }
47 Int32 replicationRank() const { return m_replication_rank; }
48 void setReplicationRank(Int32 v) { m_replication_rank = v; }
49 Int32 nbReplication() const { return m_nb_replication; }
50 void setNbReplication(Int32 v) { m_nb_replication = v; }
51 private:
52 Int32 m_part_rank;
53 Int32 m_nb_part;
54 Int32 m_replication_rank;
55 Int32 m_nb_replication;
56};
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61extern "C++" ARCANE_CORE_EXPORT
62MeshPartInfo makeMeshPartInfoFromParallelMng(IParallelMng* pm);
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // End namespace Arcane
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif
73
Fichier de configuration d'Arcane.
Interface du gestionnaire de parallélisme pour un sous-domaine.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Informations un maillage partitionné.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-