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
currentBlockto comply with the new grid as defined byinit_filenameandparticle_filename. NOTE:init_filenameandgraph_filenamemust be compatible!We assume that all particles will be within the domain such that a nearest neighbor search is sufficient to make the remap.