Arcane  4.1.11.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshInfos.h
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/* MeshInfos.h (C) 2000-2022 */
9/* */
10/* General mesh information */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESH_MESHINFOS_H
13#define ARCANE_MESH_MESHINFOS_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/mesh/MeshGlobal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::mesh
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
34
35class ARCANE_MESH_EXPORT MeshInfos
36{
37 public:
38
47
49 virtual ~MeshInfos() {}
50
51 public:
52
54 Int32 rank() const { return m_mesh_rank; }
55
58 Integer getNbNode() const { return m_mesh_nb_node; }
59
62 Integer getNbEdge() const { return m_mesh_nb_edge; }
63
66 Integer getNbFace() const { return m_mesh_nb_face; }
67
70 Integer getNbCell() const { return m_mesh_nb_cell; }
71
73 void reset()
74 {
79 }
80
81 private:
82
88};
89
90/*---------------------------------------------------------------------------*/
91/*---------------------------------------------------------------------------*/
92
93} // End namespace Arcane::mesh
94
95/*---------------------------------------------------------------------------*/
96/*---------------------------------------------------------------------------*/
97
98#endif
Integer & nbCell()
Number of cells in the mesh.
Definition MeshInfos.h:69
Integer m_mesh_nb_node
Number of nodes in the mesh.
Definition MeshInfos.h:84
Int32 m_mesh_rank
Number of this subdomain.
Definition MeshInfos.h:83
Int32 rank() const
Number of this subdomain.
Definition MeshInfos.h:54
Integer m_mesh_nb_cell
Number of cells in the mesh.
Definition MeshInfos.h:87
Integer m_mesh_nb_face
Number of faces in the mesh.
Definition MeshInfos.h:86
Integer & nbEdge()
Number of edges in the mesh.
Definition MeshInfos.h:61
void reset()
Resets the numbering.
Definition MeshInfos.h:73
MeshInfos(const Integer rank)
Definition MeshInfos.h:40
Integer & nbNode()
Number of nodes in the mesh.
Definition MeshInfos.h:57
Integer m_mesh_nb_edge
Number of edges in the mesh.
Definition MeshInfos.h:85
Integer & nbFace()
Number of faces in the mesh.
Definition MeshInfos.h:65
Int32 Integer
Type représentant un entier.
std::int32_t Int32
Type entier signé sur 32 bits.