Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ReplaceGhostField.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
19
23#include <memory>
24
25#define NODE_EDGES(X_RO, X_RW) \
26 /* ------------------- inputs ------------------- */ \
27 X_RO(shamrock::solvergraph::PatchDataFieldDDShared<T>, ghost_fields) \
28 \
29 /* ------------------- outputs ------------------- */ \
30 X_RW(shamrock::solvergraph::IFieldRefs<T>, fields)
31
32namespace shamrock::solvergraph {
33
34 template<class T>
35 class ReplaceGhostField : public INode {
36
37 public:
38 ReplaceGhostField() {}
39
40 EXPAND_NODE_EDGES(NODE_EDGES)
41
43
44 inline virtual std::string _impl_get_label() const { return "ReplaceGhostField"; };
45
46 virtual std::string _impl_get_tex() const { return "ReplaceGhostField"; };
47 };
48} // namespace shamrock::solvergraph
49
50#undef NODE_EDGES
Shared distributed data field for patch data management in solver graphs.
virtual std::string _impl_get_tex() const
get the tex of the node
virtual std::string _impl_get_label() const
get the label of the node