compass.ocean.particles.remap_particles¶
- compass.ocean.particles.remap_particles(init_filename, particle_filename, graph_filename)[source]¶
Remap particles onto a new grid decomposition.
Load in particle positions, locations of grid cell centers, and decomposition corresponding to
init_filename
.The goal is to update particle field
currentBlock
to comply with the new grid as defined byinit_filename
andparticle_filename
. NOTE:init_filename
andgraph_filename
must be compatible!We assume that all particles will be within the domain such that a nearest neighbor search is sufficient to make the remap.