Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
CopyPatchDataLayerFields.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
18
25#include <memory>
26
27#define NODE_EDGES(X_RO, X_RW) \
28 X_RO(shamrock::solvergraph::IPatchDataLayerRefs, original) \
29 X_RW(shamrock::solvergraph::PatchDataLayerEdge, target)
30
31namespace shamrock::solvergraph {
32
33 class CopyPatchDataLayerFields : public INode {
34
35 public:
36 CopyPatchDataLayerFields(
37 std::shared_ptr<patch::PatchDataLayerLayout> layout_source,
38 std::shared_ptr<patch::PatchDataLayerLayout> layout_target)
39 : layout_source(layout_source), layout_target(layout_target) {}
40
41 std::shared_ptr<patch::PatchDataLayerLayout> layout_source;
42 std::shared_ptr<patch::PatchDataLayerLayout> layout_target;
43
44 EXPAND_NODE_EDGES(NODE_EDGES)
45
47
48 std::string _impl_get_label() const { return "CopyPatchDataLayerFields"; }
49
50 std::string _impl_get_tex() const { return "TODO"; }
51 };
52} // namespace shamrock::solvergraph
53
54#undef NODE_EDGES
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
Defines the PatchDataLayerEdge class for managing patch data layer edges.
std::string _impl_get_label() const
get the label of the node
std::string _impl_get_tex() const
get the tex of the node
This header file contains utility functions related to exception handling in the code.