encounter_check_all_plplm Interface

interface
public module subroutine encounter_check_all_plplm(param, nplm, nplt, rplm, vplm, rplt, vplt, rencm, renct, dt, nenc, index1, index2, lvdotr)

Arguments

Type IntentOptional Attributes Name
class(base_parameters), intent(inout) :: param

Current Swiftest run configuration parameter5s

integer(kind=I4B), intent(in) :: nplm

Total number of fully interacting massive bodies

integer(kind=I4B), intent(in) :: nplt

Total number of partially interacting masive bodies (GM < GMTINY)

real(kind=DP), intent(in), dimension(:,:) :: rplm

Position vectors of fully interacting massive bodies

real(kind=DP), intent(in), dimension(:,:) :: vplm

Velocity vectors of fully interacting massive bodies

real(kind=DP), intent(in), dimension(:,:) :: rplt

Position vectors of partially interacting massive bodies

real(kind=DP), intent(in), dimension(:,:) :: vplt

Velocity vectors of partially interacting massive bodies

real(kind=DP), intent(in), dimension(:) :: rencm

Critical radii of fully interacting massive bodies that defines an encounter

real(kind=DP), intent(in), dimension(:) :: renct

Critical radii of partially interacting massive bodies that defines an encounter

real(kind=DP), intent(in) :: dt

Step size

integer(kind=I8B), intent(out) :: nenc

Total number of encounters

integer(kind=I4B), intent(out), dimension(:), allocatable :: index1

List of indices for body 1 in each encounter

integer(kind=I4B), intent(out), dimension(:), allocatable :: index2

List of indices for body 2 in each encounter

logical, intent(out), dimension(:), allocatable :: lvdotr

Logical flag indicating the sign of v .dot. x