Finalizes the ResPart_set type. This subourtine replaces the inheritted lagrangian_final.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ResPart_set), | intent(inout) | :: | this |
Set of resolved partilces |
impure subroutine ResPart_set_Final(this) !> Finalizes the ResPart_set type. ! This subourtine replaces the inheritted lagrangian_final. class(ResPart_set), intent(inout) :: this !! Set of resolved partilces ! Remove all centroids and deallocate this%count_= 0 this%count = 0 if(allocated(this%p)) deallocate(this%p) if(allocated(this%count_proc)) deallocate(this%count_proc) ! Deallocate additional child-type arrays if(allocated(this%ranks)) deallocate(this%ranks) if(allocated(this%lookup)) deallocate(this%lookup) ! Finalize IB call this%ib%Finalize() ! Nullify pointers this%parallel => null() this%block => null() ! Free MPI Type call this%FreeMPIType() ! Turn off flag this%is_initialized = .false. return end subroutine ResPart_set_Final