Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshExchangeMng.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/* MeshExchangeMng.h (C) 2000-2024 */
9/* */
10/* Mesh exchange manager between subdomains. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESHEXCHANGEMNG_H
13#define ARCANE_MESHEXCHANGEMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/core/IMeshExchangeMng.h"
19#include "arcane/core/IMesh.h"
20#include "arcane/mesh/MeshGlobal.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane::mesh
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
35class ARCANE_MESH_EXPORT MeshExchangeMng
36: public TraceAccessor
37, public IMeshExchangeMng
38{
39 public:
40
41 MeshExchangeMng(IMesh* mesh);
42 ~MeshExchangeMng();
43
44 public:
45
46 IPrimaryMesh* mesh() const override;
47 IMeshExchanger* beginExchange() override;
48 void endExchange() override;
49 IMeshExchanger* exchanger() override { return m_exchanger; }
50
51 protected:
52
53 virtual IMeshExchanger* _createExchanger();
54
55 private:
56
57 IMesh* m_mesh;
58 IMeshExchanger* m_exchanger;
59};
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64} // namespace Arcane::mesh
65
66/*---------------------------------------------------------------------------*/
67
68#endif
Interface for managing mesh exchanges between subdomains.
Management of a mesh exchange between subdomains.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
IMeshExchanger * exchanger() override
Current exchanger.
void endExchange() override
Signals that the exchange is finished.
IMeshExchanger * beginExchange() override
Starts an exchange.
IPrimaryMesh * mesh() const override
Associated mesh.