Finalizes structure and frees memory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(silo_obj), | intent(inout) | :: | this |
A silo object |
impure subroutine silo_obj_Final(this) !> Finalizes structure and frees memory. implicit none class(silo_obj), intent(inout) :: this !! A silo object ! Work variables integer :: ierr if (this%parallel%RankIsRoot()) then ! Close the VDB file ierr = DBclose(this%fid_VDB) ! Close the VisIt close(this%fid_VisIt) end if ! Deallocate arrays if (allocated(this%group_ids)) deallocate(this%group_ids) if (allocated(this%access_flag)) deallocate(this%access_flag) ! Nullify pointers this%parallel => null() return end subroutine silo_obj_Final