chain_push Subroutine

private subroutine chain_push(cei, cy, cn, e, y)

Append one point to growable chain.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), allocatable :: cei(:)

Strip edge of each point.

real(kind=real64), intent(inout), allocatable :: cy(:)

y of each point.

integer(kind=int32), intent(inout) :: cn

Number of points, incremented.

integer(kind=int32), intent(in) :: e

Strip edge of new point.

real(kind=real64), intent(in) :: y

y of new point.


Source Code

   subroutine chain_push(cei, cy, cn, e, y)
      !! Append one point to growable chain.
      ! Arguments
      integer(int32), allocatable, intent(inout) :: cei(:)
         !! Strip edge of each point.
      real(real64), allocatable, intent(inout) :: cy(:)
         !! y of each point.
      integer(int32), intent(inout) :: cn
         !! Number of points, incremented.
      integer(int32), intent(in) :: e
         !! Strip edge of new point.
      real(real64), intent(in) :: y
         !! y of new point.
      cn = cn + 1
      call grow_i32(cei, cn)
      call grow_r64(cy, cn)
      cei(cn) = e; cy(cn) = y
   end subroutine chain_push