Finalizes the structure and frees memory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(lagrangian_set), | intent(inout) | :: | this |
A set of Lagrangian objects |
impure subroutine lagrangian_set_Final(this) !> Finalizes the structure and frees memory. implicit none class(lagrangian_set), intent(inout) :: this !! A set of Lagrangian objects this%count_= 0 this%count = 0 ! Deallocate arrays if(allocated(this%p)) deallocate(this%p) if(allocated(this%count_proc)) deallocate(this%count_proc) ! Nullify pointers this%parallel => null() this%block => null() ! Free MPI Type call this%FreeMPIType() ! Turn off flag this%is_initialized = .false. return end subroutine lagrangian_set_Final