bandset_clear Subroutine

public subroutine bandset_clear(bs)

Drop every band of a set.

Arguments

Type IntentOptional Attributes Name
type(bandset_t), intent(inout) :: bs

Band set.


Source Code

   subroutine bandset_clear(bs)
      !! Drop every band of a set.
      ! Arguments
      type(bandset_t), intent(inout) :: bs
         !! Band set.
      if (allocated(bs%b)) deallocate (bs%b)
      bs%nb = 0
   end subroutine bandset_clear