Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MeshKind.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 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-2023 */
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) {
29 case eMeshStructure::Unknown:
30 return "Unknown";
31 case eMeshStructure::Unstructured:
32 return "Unstructured";
33 case eMeshStructure::Cartesian:
34 return "Cartesian";
35 default:
36 return "Invalid";
37 }
38 }
39 const char* _toName(eMeshAMRKind r)
40 {
41 switch (r) {
42 case eMeshAMRKind::None:
43 return "None";
44 case eMeshAMRKind::Cell:
45 return "Cell";
46 case eMeshAMRKind::Patch:
47 return "Patch";
48 case eMeshAMRKind::PatchCartesianMeshOnly:
49 return "PatchCartesianMeshOnly";
50 default:
51 return "Invalid";
52 }
53 }
54} // namespace
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59extern "C++" ARCANE_CORE_EXPORT std::ostream&
60operator<<(std::ostream& o, eMeshStructure r)
61{
62 o << _toName(r);
63 return o;
64}
65
66extern "C++" ARCANE_CORE_EXPORT std::ostream&
67operator<<(std::ostream& o, eMeshAMRKind r)
68{
69 o << _toName(r);
70 return o;
71}
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76} // namespace Arcane
77
78/*---------------------------------------------------------------------------*/
79/*---------------------------------------------------------------------------*/
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eMeshStructure
Structure du maillage.
Definition MeshKind.h:29
std::ostream & operator<<(std::ostream &ostr, eItemKind item_kind)
Opérateur de sortie sur un flot.
eMeshAMRKind
Type de maillage AMR.
Definition MeshKind.h:40