findParticleFromElem Subroutine

private subroutine findParticleFromElem(particleGroup, elemPos, thisParticleIndex, findParticleIndex, particleID)

find particle index and ID in particleGroup array

Arguments

Type IntentOptional Attributes Name
type(mus_particle_group_type), intent(in) :: particleGroup

Array of particles

integer, intent(in) :: elemPos

Index of element for which to find particle in state array

integer :: thisParticleIndex

Index of particle that was found in particleGroup%particles

integer :: findParticleIndex
integer :: particleID

ID of particle that was found