initParticle_DPS Subroutine

public subroutine initParticle_DPS(particle, interpolator, particleID, geometry, scheme, myRank, comm)

initParticle_DPS performs the initialization of a DPS particle once it has been created. This consists of determining the coordinates of particle origin and determining which processes this particle exists on.

Arguments

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

Particle to initialize

type(mus_particle_interpolator_type), intent(in) :: interpolator

Interpolation data type. We don't interpolate stuff here but we use it to determine the directions we need to search for local elements in (only x, y for d2q9, x, y, z for d3q19)

integer, intent(in) :: particleID

Number to uniquely identify particle particle

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

Geometry to determine TreeIDs of elements 'covered' by particle

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

Scheme for access to level descriptor

integer, intent(in) :: myRank

MPI rank of this process

type(mus_particles_communication_type) :: comm

Communication data type for particles