Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ExchangeGhostLayer.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
21
27
28#define NODE_EDGES(X_RO, X_RW) \
29 /* input */ \
30 X_RO(shamrock::solvergraph::RankGetter, rank_owner) \
31 /* output */ \
32 X_RW(shamrock::solvergraph::PatchDataLayerDDShared, ghost_layer)
33
34namespace shamrock::solvergraph {
35
67 std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ghost_layer_layout;
68
69 public:
78 std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ghost_layer_layout)
79 : ghost_layer_layout(std::move(ghost_layer_layout)) {}
80
81 EXPAND_NODE_EDGES(NODE_EDGES)
82
83
92
97 inline virtual std::string _impl_get_label() const { return "ExchangeGhostLayer"; };
98
103 virtual std::string _impl_get_tex() const;
104 };
105} // namespace shamrock::solvergraph
106
107#undef NODE_EDGES
Shared distributed data layer for patch data management in solver graphs.
virtual std::string _impl_get_tex() const
Returns the TeX representation for this node.
virtual std::string _impl_get_label() const
Returns the display label for this node.
void _impl_evaluate_internal()
Performs the ghost layer data exchange computation.
ExchangeGhostLayer(std::shared_ptr< shamrock::patch::PatchDataLayerLayout > ghost_layer_layout)
Constructs an ExchangeGhostLayer node with specified layout.
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:30