Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
GhostLayerFromConnectivityComputer.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/* GhostLayerFromConnectivityComputer.h (C) 2000-2015 */
9/* */
10/* Implementation of a ghost layer creation policy for connectivity */
11/*------------------------------------------------------------------------------*/
12#ifndef ARCANE_DOF_GHOSTLAYERFROMCONNECTIVITYCOMPUTER_H
13#define ARCANE_DOF_GHOSTLAYERFROMCONNECTIVITYCOMPUTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/ArrayView.h"
18#include "arcane/utils/ITraceMng.h"
19
21#include "arcane/core/IExtraGhostItemsBuilder.h"
22#include "arcane/core/IItemConnectivity.h"
23
24#include "arcane/mesh/DoFFamily.h"
25#include "arcane/mesh/ItemConnectivity.h"
26#include "arcane/mesh/IItemConnectivityGhostPolicy.h"
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31namespace Arcane
32{
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
52class ARCANE_MESH_EXPORT GhostLayerFromConnectivityComputer
54{
55 public:
56
59
61 : m_connectivity(NULL)
62 , m_trace_mng(NULL)
63 {}
64
67
68 public:
69
71 Int32ConstArrayView communicatingRanks();
72 Int32ConstArrayView sharedItems(const Integer rank, const String& family_name);
73 Int32ConstArrayView sharedItemsConnectedItems(const Integer rank, const String& family_name);
74 void updateConnectivity(Int32ConstArrayView ghost_items, Int64ConstArrayView ghost_items_connected_items);
75
76 protected:
77
78 IItemConnectivity* m_connectivity;
79 ITraceMng* m_trace_mng;
80 SharedArray<Int32SharedArray> m_shared_items;
81 SharedArray<Int32SharedArray> m_shared_items_connected_items;
82
83 private:
84
85 void _computeSharedItems();
86};
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
91} // namespace Arcane
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
95
96#endif
Declarations of Arcane's general types.
Interface to manage connectivity.
1D vector of data with reference semantics.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
Definition UtilsTypes.h:480