Restore all the segment data form the cache.
segment
subroutine uncache(me) implicit none class(segment),intent(inout) :: me me%data = me%cached_data end subroutine uncache