Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
NodeAXPYThreeVectors.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
20
21#include "shambackends/vec.hpp"
26
27#define NODE_EDGES(X_RO, X_RW) \
28 /* ------------------- inputs ------------------- */ \
29 X_RO(shamrock::solvergraph::Indexes<u32>, sizes) \
30 X_RO(shamrock::solvergraph::IFieldSpan<T>, spans_x) \
31 X_RO(shamrock::solvergraph::IFieldSpan<T>, spans_y) \
32 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, alpha) \
33 X_RO(shamrock::solvergraph::IDataEdge<Tscal>, beta) \
34 \
35 /* ------------------- outputs ------------------- */ \
36 X_RW(shamrock::solvergraph::IFieldSpan<T>, spans_z)
37
38namespace shamrock::solvergraph {
39
47 template<class T>
48 class NodeAXPYThreeVectors : public shamrock::solvergraph::INode {
49 using Tscal = shambase::VecComponent<T>;
50
51 u32 nvar;
52
53 public:
54 NodeAXPYThreeVectors(u32 nvar) : nvar(nvar) {}
55
56 EXPAND_NODE_EDGES(NODE_EDGES)
57
59
60 inline virtual std::string _impl_get_label() const { return "NodeAXPYThreeVectors"; }
61
62 virtual std::string _impl_get_tex() const;
63 };
64
65} // namespace shamrock::solvergraph
66
67#undef NODE_EDGES
std::uint32_t u32
32 bit unsigned integer
Inode is node between data edges, takes multiple inputs, multiple outputs.
Definition INode.hpp:31
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