Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ExtractGhostLayer.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
17
23
24#define NODE_EDGES(X_RO, X_RW) \
25 /* ------------------- inputs ------------------- */ \
26 X_RO(shamrock::solvergraph::IPatchDataLayerRefs, patch_data_layers) \
27 X_RO(shamrock::solvergraph::DDSharedBuffers<u32>, idx_in_ghost) \
28 \
29 /* ------------------- outputs ------------------- */ \
30 X_RW(shamrock::solvergraph::PatchDataLayerDDShared, ghost_layer)
31
33
34 class ExtractGhostLayer : public shamrock::solvergraph::INode {
35 std::shared_ptr<shamrock::patch::PatchDataLayerLayout> ghost_layer_layout;
36
37 public:
38 ExtractGhostLayer(
39 const std::shared_ptr<shamrock::patch::PatchDataLayerLayout> &ghost_layer_layout)
40 : ghost_layer_layout(ghost_layer_layout) {}
41
42 EXPAND_NODE_EDGES(NODE_EDGES)
43
45
46 inline virtual std::string _impl_get_label() const { return "ExtractGhostLayer"; }
47
48 virtual std::string _impl_get_tex() const;
49 };
50} // namespace shammodels::basegodunov::modules
51
52#undef NODE_EDGES
Defines the DDSharedBuffers class for managing buffers contained in a distributed data shared.
Shared distributed data layer for patch data management in solver graphs.
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
virtual std::string _impl_get_label() const
get the label of the node
virtual std::string _impl_get_tex() const
get the tex of the node
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:30
namespace for the basegodunov model modules