free_data Subroutine

public subroutine free_data(self)

Free the host storage of the block and nullify the data view of it. A block that never allocated host storage, as on a device backend, is left as it is. There is no final procedure for this, because the constructor result is copied by intrinsic assignment and a finaliser on the temporary would free the storage the copy still uses.

Type Bound

field_t

Arguments

Type IntentOptional Attributes Name
class(field_t) :: self

Called by

proc~~free_data~~CalledByGraph proc~free_data m_field::field_t%free_data proc~destroy m_allocator::allocator_t%destroy proc~destroy->proc~free_data proc~free_data_cuda m_cuda_allocator::cuda_field_t%free_data_cuda proc~free_data_cuda->proc~free_data