Skip to content

What is the defined way of running <basic swarm>.add_particles_with_global_coordinates() in parallel? #23

@jcgraciosa

Description

@jcgraciosa

Suppose we add three particles using add_particles_with_global_coordinates():

xy_st = np.array([[0.5, 0.33], [1.5, 0.33], [1.5, 0.50]])

basic_swarm.add_particles_with_coordinates(xy_st, migrate = True)

In serial, this is not a problem.
In parallel, say N ranks, should we split xy_st into N groups before calling add_particles_with_coordinates?
Currently, not splitting xy_st and running it in parallel results to the particles being duplicated in each rank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions