Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
AMRPatchPositionLevelGroup.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* AMRPatchPositionLevelGroup.h (C) 2000-2026 */
9/* */
10/* Group of AMR patch positions distributed by level. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CARTESIANMESH_INTERNAL_AMRPATCHPOSITIONLEVELGROUP_H
13#define ARCANE_CARTESIANMESH_INTERNAL_AMRPATCHPOSITIONLEVELGROUP_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/cartesianmesh/CartesianMeshGlobal.h"
18
19#include "arcane/utils/UniqueArray.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
36class AMRPatchPositionLevelGroup
37{
38 public:
39
40 explicit AMRPatchPositionLevelGroup(Int32 max_level);
41 ~AMRPatchPositionLevelGroup();
42
43 public:
44
45 Int32 maxLevel() const;
47 void addPatch(const AMRPatchPosition& patch);
48
54 void fusionPatches(Int32 level);
55
62 static void fusionPatches(UniqueArray<AMRPatchPosition>& patch_position, bool remove_null);
63
64 private:
65
66 Int32 m_max_level;
68};
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73} // End namespace Arcane
74
75/*---------------------------------------------------------------------------*/
76/*---------------------------------------------------------------------------*/
77
78#endif
void fusionPatches(Int32 level)
Method allowing the merging of all patches of a certain level that can be merged.
Class allowing the definition of a patch position in the Cartesian mesh.
Constant view of an array of type T.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int32_t Int32
Signed integer type of 32 bits.