Finalizes object and frees memory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(hdf5_obj), | intent(inout) | :: | this |
A HDF5 object |
impure subroutine hdf5_obj_Final(this) !> Finalizes object and frees memory. implicit none class(hdf5_obj), intent(inout) :: this !! A HDF5 object ! Work variables integer :: ierr ! Close if file is still open call this%Close() ! Finalize hash table call this%tbl%Finalize() if (allocated(this%filename)) deallocate(this%filename) ! Nullify pointers this%parallel => null() ! Finalize HDF5's Fortran interface !call H5close_f(ierr) call H5garbage_collect_f(ierr) return end subroutine hdf5_obj_Final