26 template<
typename Tvec>
29 using Tscal = shambase::VecComponent<Tvec>;
35 GetParticlesOutsideSphere(
const Tvec &sphere_center, Tscal sphere_radius)
36 : sphere_center(sphere_center), sphere_radius(sphere_radius) {}
43 inline void set_edges(
46 part_ids_outside_sphere) {
51 inline Edges get_edges() {
59 inline virtual std::string
_impl_get_label()
const {
return "GetParticlesOutsideSphere"; };
Defines the DistributedBuffers class for managing distributed device buffers in a solver graph.
Defines the PatchDataLayerRefs class for managing distributed references to patch data layers.
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
void _impl_evaluate_internal()
evaluate the node
Interface for a solver graph edge representing a field as spans.
Interface for a solver graph edge representing a field as references to the underlying patch fields.
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 sph model modules