28 template<
class Tvec,
class Tgr
idVec>
30 using Tscal = shambase::VecComponent<Tvec>;
40 : block_size(block_size), var_per_cell(var_per_cell), mode(mode) {}
50 inline void set_edges(
60 inline Edges get_edges() {
62 get_ro_edge<shamrock::solvergraph::Indexes<u32>>(0),
63 get_ro_edge<solvergraph::OrientedAMRGraphEdge<Tvec, TgridVec>>(1),
64 get_ro_edge<shamrock::solvergraph::IFieldSpan<Tscal>>(2),
66 get_rw_edge<shamrock::solvergraph::IFieldSpan<Tvec>>(0),
72 inline virtual std::string
_impl_get_label()
const {
return "SlopeLimitedScalarGradient"; };
77 template<
class Tvec,
class Tgr
idVec>
79 using Tscal = shambase::VecComponent<Tvec>;
89 : block_size(block_size), var_per_cell(var_per_cell), mode(mode) {}
101 inline void set_edges(
113 inline Edges get_edges() {
115 get_ro_edge<shamrock::solvergraph::Indexes<u32>>(0),
116 get_ro_edge<solvergraph::OrientedAMRGraphEdge<Tvec, TgridVec>>(1),
117 get_ro_edge<shamrock::solvergraph::IFieldSpan<Tscal>>(2),
119 get_rw_edge<shamrock::solvergraph::IFieldSpan<Tvec>>(0),
121 get_rw_edge<shamrock::solvergraph::IFieldSpan<Tvec>>(2),
127 inline virtual std::string
_impl_get_label()
const {
return "SlopeLimitedVectorGradient"; };
std::uint32_t u32
32 bit unsigned integer
void _impl_evaluate_internal()
evaluate the node
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
void _impl_evaluate_internal()
evaluate the node
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
Interface for a solver graph edge representing a field as spans.
Inode is node between data edges, takes multiple inputs, multiple outputs.
T & get_rw_edge(int slot)
Get a read write edge and cast it to the type T.
void __internal_set_rw_edges(std::vector< std::shared_ptr< IEdge > > new_rw_edges)
Set the read write edges.
void __internal_set_ro_edges(std::vector< std::shared_ptr< IEdge > > new_ro_edges)
Set the read only edges.
const T & get_ro_edge(int slot)
Get a read only edge and cast it to the type T.
namespace for the basegodunov model modules
SlopeMode
Slope limiter modes.