swiftest_util_get_potential_energy Interface

public interface swiftest_util_get_potential_energy

Contents


Subroutines

public module subroutine swiftest_util_get_potential_energy_flat(npl, nplpl, k_plpl, lmask, GMcb, Gmass, mass, rb, pe)

Arguments

TypeIntentOptionalAttributesName
integer(kind=I4B), intent(in) :: npl
integer(kind=I8B), intent(in) :: nplpl
integer(kind=I4B), intent(in), dimension(:,:):: k_plpl
logical, intent(in), dimension(:):: lmask
real(kind=DP), intent(in) :: GMcb
real(kind=DP), intent(in), dimension(:):: Gmass
real(kind=DP), intent(in), dimension(:):: mass
real(kind=DP), intent(in), dimension(:,:):: rb
real(kind=DP), intent(out) :: pe

public module subroutine swiftest_util_get_potential_energy_triangular(npl, lmask, GMcb, Gmass, mass, rb, pe)

Arguments

TypeIntentOptionalAttributesName
integer(kind=I4B), intent(in) :: npl
logical, intent(in), dimension(:):: lmask
real(kind=DP), intent(in) :: GMcb
real(kind=DP), intent(in), dimension(:):: Gmass
real(kind=DP), intent(in), dimension(:):: mass
real(kind=DP), intent(in), dimension(:,:):: rb
real(kind=DP), intent(out) :: pe