Resets a storage object by deallocating all items and resetting the frame counter to 0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_storage), | intent(inout) | :: | self |
Swiftest storage object |
subroutine base_util_dealloc_storage(self) !! author: David A. Minton !! !! Resets a storage object by deallocating all items and resetting the frame counter to 0 implicit none ! Arguments class(base_storage), intent(inout) :: self !! Swiftest storage object call self%reset() if (allocated(self%frame)) deallocate(self%frame) self%nframes = 0 return end subroutine base_util_dealloc_storage