Release buffers and topology state. Idempotent.
subroutine ocean_halo_destroy() !! Release buffers and topology state. Idempotent. if (.not. oh_initialised) return !$acc exit data delete(oh_buf_send_east, oh_buf_recv_east, & !$acc& oh_buf_send_west, oh_buf_recv_west, & !$acc& oh_buf_send_north, oh_buf_recv_north, & !$acc& oh_buf_send_south, oh_buf_recv_south) deallocate (oh_buf_send_east, oh_buf_recv_east) deallocate (oh_buf_send_west, oh_buf_recv_west) deallocate (oh_buf_send_north, oh_buf_recv_north) deallocate (oh_buf_send_south, oh_buf_recv_south) oh_cap_ew = 0 oh_cap_ns = 0 oh_nghost = 0 oh_nx_local = 0 oh_ny_local = 0 oh_nx_total = 0 oh_ny_total = 0 oh_periodic_x = .false. oh_periodic_y = .false. oh_initialised = .false. end subroutine ocean_halo_destroy