UpdateDevice_RefinementIndicator2D Subroutine

public subroutine UpdateDevice_RefinementIndicator2D(this)

Arguments

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

Calls

proc~~updatedevice_refinementindicator2d~~CallsGraph proc~updatedevice_refinementindicator2d UpdateDevice_RefinementIndicator2D interface~hipmemcpy hipMemcpy proc~updatedevice_refinementindicator2d->interface~hipmemcpy proc~gpucheck gpuCheck proc~updatedevice_refinementindicator2d->proc~gpucheck

Contents


Source Code

  subroutine UpdateDevice_RefinementIndicator2D(this)
    implicit none
    class(RefinementIndicator2D),intent(inout) :: this

    call gpuCheck(hipMemcpy(this%Pmodal_gpu,c_loc(this%Pmodal), &
                            sizeof(this%Pmodal),hipMemcpyHostToDevice))
    call gpuCheck(hipMemcpy(this%indicator_gpu,c_loc(this%indicator), &
                            sizeof(this%indicator),hipMemcpyHostToDevice))
    call gpuCheck(hipMemcpy(this%flag_gpu,c_loc(this%flag), &
                            sizeof(this%flag),hipMemcpyHostToDevice))

  endsubroutine UpdateDevice_RefinementIndicator2D