bc_set_Final Subroutine

private pure subroutine bc_set_Final(this)

Finalizes bc_set and frees memory.

Type Bound

bc_set

Arguments

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

Boundary conditions utility


Calls

proc~~bc_set_final~~CallsGraph proc~bc_set_final bc_set%bc_set_Final proc~region_obj_final region_obj%region_obj_Final proc~bc_set_final->proc~region_obj_final proc~hashtbl_obj_final hashtbl_obj%hashtbl_obj_Final proc~region_obj_final->proc~hashtbl_obj_final

Source Code

    pure subroutine bc_set_Final(this)
      !> Finalizes bc_set and frees memory.
      class(bc_set), intent(inout) :: this                                     !! Boundary conditions utility
      ! Work variables
      integer :: n

      ! Nullify pointers
      this%parallel => null()
      this%block    => null()
      this%hdf5     => null()

      ! Clear regions
      if (allocated(this%region)) then
        do n=1,this%count
          call this%region(n)%Finalize
        end do

        deallocate(this%region)
        this%count = 0
      end if

      ! Clear hash table
      call this%tbl%Finalize

      return
    end subroutine bc_set_Final