29 using Tscal = shambase::VecComponent<Tvec>;
41 : context(context), parent1(parent1), parent2(parent2) {}
43 bool is_done() {
return parent1->is_done() && parent2->is_done(); }
47 u32 cnt1 = (parent1->is_done()) ? 0 : (nmax / 2);
48 u32 cnt2 = nmax - cnt1;
53 tmp1.insert_elements(tmp2);
57 std::string
get_name() {
return "CombinerAdd"; }
60 get_name(), 2, {parent1->get_dot_subgraph(), parent2->get_dot_subgraph()}};
std::uint32_t u32
32 bit unsigned integer
Iterator utility to generate the lattice.
utility for generating HCP crystal lattices
bool is_done()
This function return true if the setup is done.
shamrock::patch::PatchDataLayer next_n(u32 nmax)
This function generate patchdata with at most nmax per MPI ranks This function is always assumed as c...
std::string get_name()
Get the name of the node.
ISPHSetupNode_Dot get_dot_subgraph()
Get a dot subgraph describing the node and its childrens (recursively)
This class is an interface that all SPH setup nodes must implement. It describe an operation associat...
PatchDataLayer container class, the layout is described in patchdata_layout.
namespace for the sph model modules
std::shared_ptr< ISPHSetupNode > SetupNodePtr
Alias for a shared pointer to an ISPHSetupNode.
This struct is used to generate a dot graph of the setup tree.