UpdateHost_Scalar2D Subroutine

public subroutine UpdateHost_Scalar2D(this)

Arguments

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

Calls

proc~~updatehost_scalar2d~~CallsGraph proc~updatehost_scalar2d UpdateHost_Scalar2D interface~hipmemcpy hipMemcpy proc~updatehost_scalar2d->interface~hipmemcpy proc~gpucheck gpuCheck proc~updatehost_scalar2d->proc~gpucheck

Contents

Source Code


Source Code

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

    call gpuCheck(hipMemcpy(c_loc(this%interior),this%interior_gpu,sizeof(this%interior),hipMemcpyDeviceToHost))
    call gpuCheck(hipMemcpy(c_loc(this%boundary),this%boundary_gpu,sizeof(this%boundary),hipMemcpyDeviceToHost))
    call gpuCheck(hipMemcpy(c_loc(this%extboundary),this%extboundary_gpu,sizeof(this%extboundary),hipMemcpyDeviceToHost))
    call gpuCheck(hipMemcpy(c_loc(this%avgboundary),this%avgboundary_gpu,sizeof(this%avgboundary),hipMemcpyDeviceToHost))
    call gpuCheck(hipMemcpy(c_loc(this%boundarynormal),this%boundarynormal_gpu,sizeof(this%boundarynormal),hipMemcpyDeviceToHost))

  endsubroutine UpdateHost_Scalar2D