Finalizes solver and frees memory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(grans_obj), | intent(inout) | :: | this |
GRANS solver |
subroutine grans_obj_Final(this) !> Finalizes solver and frees memory. implicit none class(grans_obj), intent(inout) :: this !! GRANS solver ! Nullify pointers this%timer => null() this%parallel => null() this%parser => null() this%hdf5 => null() ! Deallocate allocatables if (allocated(this%name)) deallocate(this%name) if (allocated(this%outputs)) deallocate(this%outputs) if (allocated(this%output_var)) deallocate(this%output_var) if (allocated(this%VF_solver)) deallocate(this%VF_solver) ! Finalize derived types call this%RP % Finalize() call this%PP % Finalize() call this%IB % Finalize() call this%collisions % Finalize() call this%VFSolver % Finalize() call this%op % Finalize() call this%bcs % Finalize() call this%fields % Finalize() call this%block % Finalize() call this%monitors % Finalize() return end subroutine grans_obj_Final