Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ResidualDot.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
25
26#define NODE_EDGES(X_RO, X_RW) \
27 /* ------------------- inputs ------------------- */ \
28 X_RO(shamrock::solvergraph::Indexes<u32>, sizes) \
29 X_RO(shamrock::solvergraph::IFieldRefs<T>, spans_phi_res) \
30 \
31 /* ------------------- outputs ------------------- */ \
32 X_RW(shamrock::solvergraph::IDataEdge<Tscal>, res_ddot)
33
35
45 template<class T>
46 class ResidualDot : public shamrock::solvergraph::INode {
47 using Tscal = shambase::VecComponent<T>;
48
49 u32 nvar;
50
51 public:
52 ResidualDot(u32 nvar) : nvar(nvar) {}
53
54 EXPAND_NODE_EDGES(NODE_EDGES)
55
57
58 inline virtual std::string _impl_get_label() const { return "ResidualDot"; };
59
60 virtual std::string _impl_get_tex() const;
61 };
62
63} // namespace shammodels::basegodunov::modules
64
65#undef NODE_EDGES
std::uint32_t u32
32 bit unsigned integer
virtual std::string _impl_get_tex() const
get the tex of the node
virtual std::string _impl_get_label() const
get the label of the node
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:31
namespace for the basegodunov model modules