Free_Vector2D Subroutine

public subroutine Free_Vector2D(this)

Arguments

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

Calls

proc~~free_vector2d~~CallsGraph proc~free_vector2d Free_Vector2D interface~hipfree hipFree proc~free_vector2d->interface~hipfree proc~gpucheck gpuCheck proc~free_vector2d->proc~gpucheck proc~hipblascheck hipblasCheck proc~free_vector2d->proc~hipblascheck interface~hipblasdestroy hipblasDestroy proc~free_vector2d->interface~hipblasdestroy

Contents

Source Code


Source Code

  subroutine Free_Vector2D(this)
    implicit none
    class(Vector2D),intent(inout) :: this

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

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

    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 gpuCheck(hipFree(this%avgBoundary_gpu))
    call gpuCheck(hipFree(this%boundaryNormal_gpu))
    call gpuCheck(hipFree(this%interpWork))
    call hipblasCheck(hipblasDestroy(this%blas_handle))

  endsubroutine Free_Vector2D