timer_obj_Final Subroutine

private pure subroutine timer_obj_Final(this)

Finalizes and frees memomry.

Type Bound

timer_obj

Arguments

Type IntentOptional Attributes Name
class(timer_obj), intent(inout) :: this

Timer


Calls

proc~~timer_obj_final~~CallsGraph proc~timer_obj_final timer_obj%timer_obj_Final proc~hashtbl_obj_final hashtbl_obj%hashtbl_obj_Final proc~timer_obj_final->proc~hashtbl_obj_final

Source Code

    pure subroutine timer_obj_Final(this)
      !> Finalizes and frees memomry.
      implicit none
      class(timer_obj), intent(inout) :: this                                  !! Timer

      ! Nullify pointers
      this%parallel => null()
      this%parser   => null()

      ! Deallocate arrays
      if (allocated(this%timing)) deallocate(this%timing)

      ! Clear hash table
      call this%tbl%Finalize

      return
    end subroutine timer_obj_Final