Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
CartesianMeshCoarsening.h
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/* CartesianMeshCoarsening.h (C) 2000-2024 */
9/* */
10/* Déraffinement d'un maillage cartésien. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CARTESIANMESH_CARTESIANMESHCOARSENING_H
13#define ARCANE_CARTESIANMESH_CARTESIANMESHCOARSENING_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/utils/Array2.h"
19
21#include "arcane/core/ICartesianMeshGenerationInfo.h"
22
23#include "arcane/cartesianmesh/CartesianMeshGlobal.h"
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28namespace Arcane
29{
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
81class ARCANE_CARTESIANMESH_EXPORT CartesianMeshCoarsening
82: public TraceAccessor
83{
84 friend CartesianMeshImpl;
85
86 private:
87
88 ARCANE_DEPRECATED_REASON("Y2024: Use Arcane::CartesianMeshUtils::createCartesianMeshCoarsening2() instead")
90
91 public:
92
98 void createCoarseCells();
99
108 {
109 return m_refined_cells[index];
110 }
116 ConstArrayView<Int32> coarseCells() const { return m_coarse_cells; }
117
123 void removeRefinedCells();
124
125 private:
126
127 ICartesianMesh* m_cartesian_mesh = nullptr;
128 Int32 m_verbosity_level = false;
129 UniqueArray2<Int32> m_refined_cells;
130 UniqueArray<Int32> m_coarse_cells;
131 bool m_is_create_coarse_called = false;
132 bool m_is_remove_refined_called = false;
133 Int64 m_first_own_cell_unique_id_offset = NULL_ITEM_UNIQUE_ID;
134
135 private:
136
137 Int64 _getMaxUniqueId(const ItemGroup& group);
138 void _recomputeMeshGenerationInfo();
139};
140
141/*---------------------------------------------------------------------------*/
142/*---------------------------------------------------------------------------*/
143
144} // End namespace Arcane
145
146/*---------------------------------------------------------------------------*/
147/*---------------------------------------------------------------------------*/
148
149#endif
150
Déclarations de types sur les entités.
Déraffine un maillage cartésien par 2.
ConstArrayView< Int32 > refinedCells(Int32 index) const
Liste des localIds() des mailles raffinées pour la maille parente d'indice index.
ConstArrayView< Int32 > coarseCells() const
Liste des localIds() des mailles grossières.
Infos spécifiques à un maillage cartésien.
Interface d'un maillage cartésien.
Groupe d'entités de maillage.
Definition ItemGroup.h:49
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-