Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
FuseGhostLayer.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
21
23
25
26 public:
28
29 struct Edges {
30 // inputs
32 // outputs
34 };
35
36 inline void set_edges(
37 std::shared_ptr<shamrock::solvergraph::PatchDataLayerDDShared> ghost_layer,
38 std::shared_ptr<shamrock::solvergraph::IPatchDataLayerRefs> patch_data_layers) {
39 __internal_set_ro_edges({ghost_layer});
40 __internal_set_rw_edges({patch_data_layers});
41 }
42
43 inline Edges get_edges() {
44 return Edges{
45 get_ro_edge<shamrock::solvergraph::PatchDataLayerDDShared>(0),
46 get_rw_edge<shamrock::solvergraph::IPatchDataLayerRefs>(0),
47 };
48 }
49
51
52 inline virtual std::string _impl_get_label() const { return "FuseGhostLayer"; };
53
54 virtual std::string _impl_get_tex() const;
55 };
56} // namespace shammodels::basegodunov::modules
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
Shared distributed data layer for patch data management in solver graphs.
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
void __internal_set_rw_edges(std::vector< std::shared_ptr< IEdge > > new_rw_edges)
Set the read write edges.
Definition INode.hpp:181
void __internal_set_ro_edges(std::vector< std::shared_ptr< IEdge > > new_ro_edges)
Set the read only edges.
Definition INode.hpp:171
Shared distributed data layer for patch data management.
namespace for the basegodunov model modules