Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
CopyPatchDataField.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
20
24#include <memory>
25
26#define NODE_EDGES(X_RO, X_RW) \
27 X_RO(shamrock::solvergraph::IFieldRefs<T>, original) \
28 X_RW(shamrock::solvergraph::IFieldRefs<T>, target)
29
30namespace shamrock::solvergraph {
31
62 template<class T>
63 class CopyPatchDataField : public INode {
64
65 public:
68
69 EXPAND_NODE_EDGES(NODE_EDGES)
70
71
80
86 std::string _impl_get_label() const { return "CopyPatchDataField"; }
87
93 std::string _impl_get_tex() const;
94 };
95} // namespace shamrock::solvergraph
96
97#undef NODE_EDGES
std::string _impl_get_label() const
Returns the human-readable label for this node.
void _impl_evaluate_internal()
Internal implementation of the field copying operation.
std::string _impl_get_tex() const
Returns the LaTeX representation of this node for documentation.