dbcsr_destroy_1d_array Subroutine

private subroutine dbcsr_destroy_1d_array(marray)

Releases all matrices in a 1-d array.

Arguments

TypeIntentOptionalAttributesName
type(dbcsr_1d_array_type), intent(inout) :: marray

matrix array


Contents


Source Code

   SUBROUTINE dbcsr_destroy_1d_array(marray)
      !! Releases all matrices in a 1-d array.

      TYPE(dbcsr_1d_array_type), INTENT(INOUT)           :: marray
         !! matrix array

      INTEGER                                            :: i

!   ---------------------------------------------------------------------------

      DO i = LBOUND(marray%mats, 1), UBOUND(marray%mats, 1)
         CALL dbcsr_destroy(marray%mats(i), force=.TRUE.)
      END DO
      CALL dbcsr_image_dist_release(marray%image_dist)
      DEALLOCATE (marray%mats)
   END SUBROUTINE dbcsr_destroy_1d_array