Free_Tensor2D Subroutine

public subroutine Free_Tensor2D(this)

Arguments

TypeIntentOptionalAttributesName
class(Tensor2D), intent(inout) :: this

Calls

proc~~free_tensor2d~~CallsGraph proc~free_tensor2d Free_Tensor2D interface~hipfree hipFree proc~free_tensor2d->interface~hipfree proc~gpucheck gpuCheck proc~free_tensor2d->proc~gpucheck proc~hipblascheck hipblasCheck proc~free_tensor2d->proc~hipblascheck interface~hipblasdestroy hipblasDestroy proc~free_tensor2d->interface~hipblasdestroy

Contents

Source Code


Source Code

  subroutine Free_Tensor2D(this)
    implicit none
    class(Tensor2D),intent(inout) :: this

    this%interp => null()
    this%nVar = 0
    this%nElem = 0

    deallocate(this%interior)
    deallocate(this%boundary)
    deallocate(this%extBoundary)

    deallocate(this%meta)
    deallocate(this%eqn)

    call gpuCheck(hipFree(this%interior_gpu))
    call gpuCheck(hipFree(this%boundary_gpu))
    call gpuCheck(hipFree(this%extBoundary_gpu))
    call hipblasCheck(hipblasDestroy(this%blas_handle))

  endsubroutine Free_Tensor2D