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
27
28namespace shamrock::solvergraph {
29
61 std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ghost_layer_layout;
62
63 public:
72 std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ghost_layer_layout)
73 : ghost_layer_layout(std::move(ghost_layer_layout)) {}
74
75#define NODE_EXCHANGE_GHOST_LAYER_EDGES(X_RO, X_RW) \
76 /* input */ \
77 X_RO(shamrock::solvergraph::RankGetter, rank_owner) \
78 /* output */ \
79 X_RW(shamrock::solvergraph::PatchDataLayerDDShared, ghost_layer)
80
81 EXPAND_NODE_EDGES(NODE_EXCHANGE_GHOST_LAYER_EDGES)
82#undef NODE_EXCHANGE_GHOST_LAYER_EDGES
83
93
98 inline virtual std::string _impl_get_label() const { return "ExchangeGhostLayer"; };
99
104 virtual std::string _impl_get_tex() const;
105 };
106} // namespace shamrock::solvergraph
Shared distributed data layer for patch data management in solver graphs.
Solver graph node for distributed ghost layer data exchange.
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
STL namespace.