*-----------------------------------------------------------------------
*     Copyright (C) 2000-2016 GFD Dennou Club. All rights reserved.
*-----------------------------------------------------------------------
      SUBROUTINE VRADD1(RX,RY,RZ,N,JX,JY,JZ)

      REAL      RX(*),RY(*),RZ(*)


      CALL GLRGET('RMISS',RMISS)
      KX=1-JX
      KY=1-JY
      KZ=1-JZ
      DO 10 J=1,N
        KX=KX+JX
        KY=KY+JY
        KZ=KZ+JZ
        IF (RX(KX).NE.RMISS .AND. RY(KY).NE.RMISS) THEN
          RZ(KZ)=RX(KX)+RY(KY)
        ELSE
          RZ(KZ)=RMISS
        END IF
   10 CONTINUE

      END
