tracer_close Subroutine

private subroutine tracer_close(tr, bs, b)

Store band in slot b to bs and free slot.

Arguments

Type IntentOptional Attributes Name
type(tracer_t), intent(inout) :: tr

Tracer.

type(bandset_t), intent(inout) :: bs

Receives band.

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

Slot to close.


Source Code

   subroutine tracer_close(tr, bs, b)
      !! Store band in slot `b` to `bs` and free slot.
      ! Arguments
      type(tracer_t), intent(inout) :: tr
         !! Tracer.
      type(bandset_t), intent(inout) :: bs
         !! Receives band.
      integer(int32), intent(in)    :: b
         !! Slot to close.
      call bandset_append(bs, tr%i0(b), tr%i1(b), &
                          tr%ylo(b, tr%i0(b):tr%i1(b)), tr%yhi(b, tr%i0(b):tr%i1(b)))
      tr%opn(b) = .false.
   end subroutine tracer_close