PPP Subroutine

public subroutine PPP(a, b, apb)

P-vector addition.

Status: vector/matrix support routine.

History

  • IAU SOFA revision: 2000 November 25

Arguments

TypeIntentOptionalAttributesName
real(kind=wp), intent(in), dimension(3):: a

first p-vector

real(kind=wp), intent(in), dimension(3):: b

second p-vector

real(kind=wp), intent(out), dimension(3):: apb

A + B


Called by

proc~~ppp~~CalledByGraph proc~ppp PPP proc~starpv STARPV proc~starpv->proc~ppp proc~pvxpv PVXPV proc~pvxpv->proc~ppp proc~fk524 FK524 proc~fk524->proc~ppp proc~fk52h FK52H proc~fk52h->proc~ppp proc~fk52h->proc~starpv proc~pvstar PVSTAR proc~fk52h->proc~pvstar proc~pvppv PVPPV proc~pvppv->proc~ppp proc~pvstar->proc~ppp proc~starpm STARPM proc~starpm->proc~starpv proc~starpm->proc~pvstar proc~fk54z FK54Z proc~fk54z->proc~fk524 proc~h2fk5 H2FK5 proc~h2fk5->proc~starpv proc~h2fk5->proc~pvstar proc~fk425 FK425 proc~fk425->proc~pvppv proc~pmsafe PMSAFE proc~pmsafe->proc~starpm

Contents

Source Code

PPP

Source Code

    subroutine PPP ( a, b, apb )

    implicit none

    real(wp),dimension(3),intent(in) :: a !! first p-vector
    real(wp),dimension(3),intent(in) :: b !! second p-vector
    real(wp),dimension(3),intent(out) :: apb !! A + B

    integer :: i

    do i=1,3
       apb(i) = a(i) + b(i)
    end do

    end subroutine PPP