Free the plan’s lists and reset it to the empty default. Safe on a plan that was never built.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fold_plan_t), | intent(inout) | :: | this |
pure subroutine fold_plan_destroy(this) !! Free the plan's lists and reset it to the empty default. Safe on !! a plan that was never built. class(fold_plan_t), intent(inout) :: this if (allocated(this%peer_rx)) deallocate (this%peer_rx) if (allocated(this%send_n)) deallocate (this%send_n) if (allocated(this%send_start)) deallocate (this%send_start) if (allocated(this%recv_n)) deallocate (this%recv_n) if (allocated(this%recv_start)) deallocate (this%recv_start) if (allocated(this%send_col)) deallocate (this%send_col) if (allocated(this%send_peer)) deallocate (this%send_peer) if (allocated(this%send_e)) deallocate (this%send_e) if (allocated(this%recv_col)) deallocate (this%recv_col) if (allocated(this%recv_peer)) deallocate (this%recv_peer) if (allocated(this%recv_e)) deallocate (this%recv_e) if (allocated(this%recv_cls)) deallocate (this%recv_cls) this%ni = 0 this%px = 0 this%ng = 0 this%rx = -1 this%npeer = 0 this%self_peer = 0 this%nmax = 0 this%nsend = 0 this%nrecv = 0 end subroutine fold_plan_destroy