Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ExchangeGhostField.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
59 template<class T>
61
63
64 public:
69
70#define NODE_EXCHANGE_GHOST_FIELD_EDGES(X_RO, X_RW) \
71 /* input */ \
72 X_RO(shamrock::solvergraph::RankGetter, rank_owner) \
73 /* output */ \
74 X_RW(shamrock::solvergraph::PatchDataFieldDDShared<T>, ghost_layer)
75
76 EXPAND_NODE_EDGES(NODE_EXCHANGE_GHOST_FIELD_EDGES)
77#undef NODE_EXCHANGE_GHOST_FIELD_EDGES
78
88
93 inline virtual std::string _impl_get_label() const { return "ExchangeGhostField"; };
94
99 virtual std::string _impl_get_tex() const;
100 };
101} // namespace shamrock::solvergraph
Shared distributed data field for patch data management in solver graphs.
Solver graph node for distributed ghost field data exchange.
virtual std::string _impl_get_tex() const
Returns the TeX representation for this node.
ExchangeGhostField()
Default constructor for ExchangeGhostField node.
virtual std::string _impl_get_label() const
Returns the display label for this node.
void _impl_evaluate_internal()
Performs the ghost field data exchange computation.
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:30