get_state_rdp Subroutine

public subroutine get_state_rdp(state, X, Y, z)

Arguments

Type IntentOptional Attributes Name
class(abstract_vector_rdp), intent(in) :: state
real(kind=dp), intent(out) :: X
real(kind=dp), intent(out) :: Y
real(kind=dp), intent(out) :: z

Source Code

    subroutine get_state_rdp(state, X, Y, Z)
        class(abstract_vector_rdp),   intent(in)  :: state
        real(dp),                 intent(out) :: X, Y, z

        select type (state)
        type is (state_vector_rdp)
            X = state%x
            Y = state%y
            Z = state%z
        class default
            call type_error('state','state_vector_rdp','IN',this_module,'get_state_rdp')
        end select
    end subroutine get_state_rdp