site
subroutine deallocate_neighbors(this) class(site) :: this if (allocated(this%neighbors)) deallocate(this%neighbors) end subroutine deallocate_neighbors