Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
BuildGhostInterfaceIdTable.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
19#include "shambackends/vec.hpp"
24
25#define NODE_EDGES(X_RO, X_RW) \
26 /* ------------------- inputs ------------------- */ \
27 X_RO(shamrock::solvergraph::IFieldRefs<Tvec>, positions) \
28 X_RO(shamrock::solvergraph::DDSharedScalar<InterfaceBuildInfos>, interface_infos) \
29 \
30 /* ------------------- outputs ------------------- */ \
31 X_RW(shamrock::solvergraph::DDSharedScalar<InterfaceIdTable>, interface_id_table)
32
34
46 template<class Tvec>
47 class BuildGhostInterfaceIdTable : public shamrock::solvergraph::INode {
48
49 using GhostHandle = BasicSPHGhostHandler<Tvec>;
50 using InterfaceBuildInfos = typename GhostHandle::InterfaceBuildInfos;
51 using InterfaceIdTable = typename GhostHandle::InterfaceIdTable;
52
53 public:
54 BuildGhostInterfaceIdTable() = default;
55
56 EXPAND_NODE_EDGES(NODE_EDGES)
57
59
60 inline virtual std::string _impl_get_label() const { return "BuildGhostInterfaceIdTable"; };
61
62 virtual std::string _impl_get_tex() const;
63 };
64
65} // namespace shammodels::sph::modules
66
67#undef NODE_EDGES
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:31
namespace for the sph model modules