Free_Scalar2D Subroutine

public subroutine Free_Scalar2D(this)

Arguments

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

Calls

proc~~free_scalar2d~~CallsGraph proc~free_scalar2d Free_Scalar2D interface~hipfree hipFree proc~free_scalar2d->interface~hipfree proc~gpucheck gpuCheck proc~free_scalar2d->proc~gpucheck proc~hipblascheck hipblasCheck proc~free_scalar2d->proc~hipblascheck interface~hipblasdestroy hipblasDestroy proc~free_scalar2d->interface~hipblasdestroy

Contents

Source Code


Source Code

  subroutine Free_Scalar2D(this)
    implicit none
    class(Scalar2D),intent(inout) :: this

    this%nVar = 0
    this%nElem = 0
    this%interp => null()
    deallocate(this%interior)
    deallocate(this%boundary)
    deallocate(this%extBoundary)
    deallocate(this%avgBoundary)
    deallocate(this%boundarynormal)
    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_Scalar2D