Subroutine to destroy an single array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ndarray_factory), | intent(inout) | :: | this | |||
class(pf_encap_t), | intent(inout), | allocatable | :: | x | ||
integer, | intent(in) | :: | level | |||
integer, | intent(in) | :: | shape(:) |
subroutine ndarray_destroy_single(this, x, level, shape)
class(ndarray_factory), intent(inout) :: this
class(pf_encap_t), intent(inout), allocatable :: x
integer, intent(in ) :: level, shape(:)
select type (x)
class is (ndarray)
deallocate(x%shape)
deallocate(x%flatarray)
end select
deallocate(x)
end subroutine ndarray_destroy_single