get_rv_dot Function

private function get_rv_dot(me, et) result(rvdot)

time derivative of each component's spline

Type Bound

body_eph_interface

Arguments

Type IntentOptional Attributes Name
class(body_eph_interface), intent(inout) :: me
real(kind=wp), intent(in) :: et

ephemeris time (sec)

Return Value real(kind=wp), dimension(6)

d/dt of the position/velocity vector


Calls

proc~~get_rv_dot~~CallsGraph proc~get_rv_dot body_eph_interface%get_rv_dot db1val db1val proc~get_rv_dot->db1val

Called by

proc~~get_rv_dot~~CalledByGraph proc~get_rv_dot body_eph_interface%get_rv_dot proc~get_rv_derivative_splined jpl_ephemeris_splined%get_rv_derivative_splined proc~get_rv_derivative_splined->proc~get_rv_dot

Source Code

    function get_rv_dot(me,et) result(rvdot)

        !! time derivative of each component's spline

        class(body_eph_interface),intent(inout) :: me
        real(wp),intent(in) :: et !! ephemeris time (sec)
        real(wp),dimension(6) :: rvdot !! d/dt of the position/velocity vector

        integer :: iflag, i

        do i = 1, 6
            call db1val(et, 1, me%eph%tx(:,i), me%eph%nx, kx, me%eph%bcoef(:,i), rvdot(i), iflag, &
                        me%inbvx, me%w0, extrap=.false.)
            if (iflag /= 0) then
                write(*,*) 'et    = ', et
                write(*,*) 'iflag = ', iflag
                error stop 'error calling get_rv_dot'
            end if
        end do

    end function get_rv_dot