compute_particle_momentum Subroutine

public subroutine compute_particle_momentum(particleGroup, lev, params, totalMomentum, comm, myRank, nProcs)

Arguments

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

Level in the octree that the particles are represented on

type(mus_param_type), intent(in) :: params

Params for access to dt, dx, etc.

real(kind=rk), intent(out) :: totalMomentum(3)

output: total momentum on ENTIRE fluid domain (across all procs)

integer, intent(in) :: comm

MPI communicator

integer, intent(in) :: myRank

My MPI rank

integer, intent(in) :: nProcs

Number of MPI processes in communicator