UpdateDevice_Scalar1D Subroutine

public subroutine UpdateDevice_Scalar1D(this)

Arguments

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

Calls

proc~~updatedevice_scalar1d~~CallsGraph proc~updatedevice_scalar1d UpdateDevice_Scalar1D interface~hipmemcpy hipMemcpy proc~updatedevice_scalar1d->interface~hipmemcpy proc~gpucheck gpuCheck proc~updatedevice_scalar1d->proc~gpucheck

Contents

Source Code


Source Code

  subroutine UpdateDevice_Scalar1D(this)
    implicit none
    class(Scalar1D),intent(inout) :: this

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

  endsubroutine UpdateDevice_Scalar1D