29 using Tscal = shambase::VecComponent<Tvec>;
46 Tscal h_scaling = 1. / 1.5)
47 : context(context), parent(parent), n_split(n_split), generator(seed),
48 h_scaling(h_scaling) {
51 "n_split must be greater than 0");
55 bool is_done()
override {
return parent->is_done(); }
59 std::string
get_name()
override {
return "ModifierSplitPart"; }
std::uint32_t u32
32 bit unsigned integer
std::uint64_t u64
64 bit unsigned integer
A parallel generator that will spit the same sequence regardless of the number of ranks.
This class is an interface that all SPH setup nodes must implement. It describe an operation associat...
bool is_done() override
This function return true if the setup is done.
ISPHSetupNode_Dot get_dot_subgraph() override
Get a dot subgraph describing the node and its childrens (recursively)
shamrock::patch::PatchDataLayer next_n(u32 nmax) override
This function generate patchdata with at most nmax per MPI ranks This function is always assumed as c...
std::string get_name() override
Get the name of the node.
PatchDataLayer container class, the layout is described in patchdata_layout.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
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.