14#include "arcane/utils/FatalErrorException.h"
16#include "arcane/MeshAccessor.h"
17#include "arcane/ISubDomain.h"
18#include "arcane/IMesh.h"
19#include "arcane/IMeshSubMeshTransition.h"
20#include "arcane/ItemGroup.h"
32MeshAccessor(ISubDomain* sd)
33: m_mesh_handle(sd->defaultMeshHandle())
41MeshAccessor(IMesh* mesh)
44 ARCANE_FATAL(
"Can not create MeshAccessor with null mesh. Use constructor with MeshHandle");
45 m_mesh_handle = mesh->handle();
49MeshAccessor(
const MeshHandle& mesh_handle)
50: m_mesh_handle(mesh_handle)
54Integer MeshAccessor::nbCell()
const {
return mesh()->nbCell(); }
55Integer MeshAccessor::nbFace()
const {
return mesh()->nbFace(); }
56Integer MeshAccessor::nbEdge()
const {
return mesh()->nbEdge(); }
57Integer MeshAccessor::nbNode()
const {
return mesh()->nbNode(); }
60 return mesh()->toPrimaryMesh()->nodesCoordinates();
62NodeGroup MeshAccessor::allNodes()
const {
return mesh()->allNodes(); }
63EdgeGroup MeshAccessor::allEdges()
const {
return mesh()->allEdges(); }
64FaceGroup MeshAccessor::allFaces()
const {
return mesh()->allFaces(); }
65CellGroup MeshAccessor::allCells()
const {
return mesh()->allCells(); }
66FaceGroup MeshAccessor::outerFaces()
const {
return mesh()->outerFaces(); }
67NodeGroup MeshAccessor::ownNodes()
const {
return mesh()->ownNodes(); }
68CellGroup MeshAccessor::ownCells()
const {
return mesh()->ownCells(); }
69FaceGroup MeshAccessor::ownFaces()
const {
return mesh()->ownFaces(); }
70EdgeGroup MeshAccessor::ownEdges()
const {
return mesh()->ownEdges(); }
#define ARCANE_FATAL(...)
Macro envoyant une exception FatalErrorException.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-