xyz_to_sph Subroutine

public subroutine xyz_to_sph(x, y, z, r, theta, phi)

translates x,y,z into r, theta, phi

Arguments

Type IntentOptional Attributes Name
real(kind=long), intent(in) :: x
real(kind=long), intent(in) :: y
real(kind=long), intent(in) :: z
real(kind=long), intent(out) :: r
real(kind=long), intent(out) :: theta
real(kind=long), intent(out) :: phi