26 auto edges = get_edges();
30 loc_val += res_field_ref.compute_dot_sum();
33 edges.res_ddot.value = shamalgs::collective::allreduce_sum(loc_val);
41 std::string tex = R
"tex(
42 Compute L2-norm squared of residual vector
44 {residual_dot} &= \sum_{i \in [0,N_{field})} {field}_i \cdot {field}_i
std::uint32_t u32
32 bit unsigned integer
virtual std::string _impl_get_tex() const
get the tex of the node
void _impl_evaluate_internal()
evaluate the node
IEdge & get_rw_edge_base(int slot)
Get a reference to a read write edge and cast it to the type IEdge.
const IEdge & get_ro_edge_base(int slot)
Get a reference to a read only edge.
void replace_all(std::string &inout, std::string_view what, std::string_view with)
replace all occurence of a search string with another
namespace for the basegodunov model modules