Arcane  v3.16.2.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshKind.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* MeshKind.cc (C) 2000-2025 */
9/* */
10/* Caractéristiques d'un maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/MeshKind.h"
15
16#include <iostream>
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arcane
22{
23
24namespace
25{
26 const char* _toName(eMeshStructure r)
27 {
28 switch (r) {
30 return "Unknown";
32 return "Unstructured";
34 return "Cartesian";
35 default:
36 return "Invalid";
37 }
38 }
39 const char* _toName(eMeshAMRKind r)
40 {
41 switch (r) {
43 return "None";
45 return "Cell";
47 return "Patch";
49 return "PatchCartesianMeshOnly";
50 default:
51 return "Invalid";
52 }
53 }
54 const char* _toName(eMeshCellDimensionKind r)
55 {
56 switch (r) {
58 return "MonoDimension";
60 return "MultiDimension";
62 return "NonManifold";
63 default:
64 return "Invalid";
65 }
66 }
67
68} // namespace
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73std::ostream&
74operator<<(std::ostream& o, eMeshStructure r)
75{
76 o << _toName(r);
77 return o;
78}
79
80std::ostream&
81operator<<(std::ostream& o, eMeshAMRKind r)
82{
83 o << _toName(r);
84 return o;
85}
86
87std::ostream&
88operator<<(std::ostream& o, eMeshCellDimensionKind r)
89{
90 o << _toName(r);
91 return o;
92}
93
94/*---------------------------------------------------------------------------*/
95/*---------------------------------------------------------------------------*/
96
97} // namespace Arcane
98
99/*---------------------------------------------------------------------------*/
100/*---------------------------------------------------------------------------*/
std::ostream & operator<<(std::ostream &o, eExecutionPolicy exec_policy)
Affiche le nom de la politique d'exécution.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eMeshCellDimensionKind
Types de gestion de la dimension du maillage.
Definition MeshKind.h:72
@ MultiDimension
Les mailles ont la même dimension que le maillage ou une dimension inférieure.
Definition MeshKind.h:76
@ NonManifold
Maillage non manifold.
Definition MeshKind.h:84
@ MonoDimension
Les mailles ont la même dimension que le maillage.
Definition MeshKind.h:74
eMeshStructure
Structure du maillage.
Definition MeshKind.h:29
@ Unknown
Structure inconnu ou pas initialisée.
Definition MeshKind.h:31
@ Cartesian
Maillage cartésien.
Definition MeshKind.h:35
@ Unstructured
Maillage non structuré
Definition MeshKind.h:33
eMeshAMRKind
Type de maillage AMR.
Definition MeshKind.h:48
@ Patch
Le maillage est AMR par patch.
Definition MeshKind.h:54
@ Cell
Le maillage est AMR par maille.
Definition MeshKind.h:52
@ None
Le maillage n'est pas AMR.
Definition MeshKind.h:50
@ PatchCartesianMeshOnly
Le maillage est AMR par patch cartésien (rectangulaire)
Definition MeshKind.h:56