updateParticleOwner Subroutine

public subroutine updateParticleOwner(this, scheme, geometry, myRank, procs, nProcs)

UpdateParticleOwner updates the "owner process" of each particle, which is the process responsible for performing operations (e.g. modifying velocity and position) on the particle and sending updates to other processes.

Arguments

Type IntentOptional Attributes Name
type(mus_particle_DPS_type), intent(inout) :: this

Particle to update owner of

type(mus_scheme_type), intent(in) :: scheme

Scheme for access to level descriptor

type(mus_geom_type), intent(in) :: geometry

Geometry to determine TreeIDs of elements 'covered' by particle

integer, intent(in) :: myRank

This process's rank

integer, intent(in) :: procs(:)

Array of neighbor procs on which particle could possibly exist

integer, intent(in) :: nProcs

Number of procs in array procs