Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MeshAreaAccessor.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/* MeshArea.h (C) 2000-2006 */
9/* */
10/* Accès aux informations d'un maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/IMeshArea.h"
17#include "arcane/ItemGroup.h"
18#include "arcane/MeshAreaAccessor.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28MeshAreaAccessor::
29MeshAreaAccessor(IMeshArea* mesh_area)
30: m_mesh_area(mesh_area)
31{
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
37MeshAreaAccessor::
38~MeshAreaAccessor()
39{
40}
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45void MeshAreaAccessor::
46setMeshArea(IMeshArea* area)
47{
48 m_mesh_area = area;
49}
50
51IMeshArea* MeshAreaAccessor::
52meshArea()
53{
54 return m_mesh_area;
55}
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60Integer MeshAreaAccessor::
61nbNode()
62{
63 return m_mesh_area->nbNode();
64}
65
66Integer MeshAreaAccessor::
67nbCell()
68{
69 return m_mesh_area->nbCell();
70}
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75NodeGroup MeshAreaAccessor::
76allNodes()
77{
78 return m_mesh_area->allNodes();
79}
80
81CellGroup MeshAreaAccessor::
82allCells()
83{
84 return m_mesh_area->allCells();
85}
86
87/*---------------------------------------------------------------------------*/
88/*---------------------------------------------------------------------------*/
89
90NodeGroup MeshAreaAccessor::
91ownNodes()
92{
93 return m_mesh_area->ownNodes();
94}
95
96CellGroup MeshAreaAccessor::
97ownCells()
98{
99 return m_mesh_area->ownCells();
100}
101
102/*---------------------------------------------------------------------------*/
103/*---------------------------------------------------------------------------*/
104
105ARCANE_END_NAMESPACE
106
107/*---------------------------------------------------------------------------*/
108/*---------------------------------------------------------------------------*/
109
Interface d'une zone du maillage.
Definition IMeshArea.h:41