fragment_center_of_mass Function

private pure function fragment_center_of_mass(this) result(center_of_mass)

compute the fragment center-of-mass

Arguments

TypeIntentOptionalAttributesName
class(fragment_type), intent(in) :: this

Return Value real(kind=dp),dimension(3)


Contents


Source Code

pure function fragment_center_of_mass(this) result(center_of_mass)

    class(fragment_type), intent(in) :: this

    real(dp), dimension(3) :: center_of_mass

    center_of_mass = compute_center_of_mass(this%atoms)

end function fragment_center_of_mass