sort_particles_by_partition.m File Reference

Functions

function sort_particles_by_partition (in simulation, in partitioning)
 Rearrange the particle order such each partition is a block in the positionArray. More...
 

Function Documentation

◆ sort_particles_by_partition()

function sort_particles_by_partition ( in  simulation,
in  partitioning 
)

Rearrange the particle order such each partition is a block in the positionArray.

Parameters
simulation(celes_simulation)
partitioning(cell array): partitioning according to which the position array shall be rearranged
Return values
simulation(celes_simulation): simulation object with updated particle order in simulation.input.particles.positionArray