fluxmethod_DGModel3D Subroutine

public subroutine fluxmethod_DGModel3D(this)

Arguments

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

Calls

proc~~fluxmethod_dgmodel3d~~CallsGraph proc~fluxmethod_dgmodel3d fluxmethod_DGModel3D interface~hipmemcpy hipMemcpy proc~fluxmethod_dgmodel3d->interface~hipmemcpy proc~gpucheck gpuCheck proc~fluxmethod_dgmodel3d->proc~gpucheck

Contents

Source Code


Source Code

  subroutine fluxmethod_DGModel3D(this)
    implicit none
    class(DGModel3D),intent(inout) :: this
    ! Local
    integer :: iel
    integer :: i,j,k
    real(prec) :: s(1:this%nvar),dsdx(1:this%nvar,1:3)

    do concurrent(i=1:this%solution%N+1,j=1:this%solution%N+1, &
                  k=1:this%solution%N+1,iel=1:this%mesh%nElem)

      s = this%solution%interior(i,j,k,iel,1:this%nvar)
      dsdx = this%solutionGradient%interior(i,j,k,iel,1:this%nvar,1:3)
      this%flux%interior(i,j,k,iel,1:this%nvar,1:3) = this%flux3d(s,dsdx)

    enddo

    call gpuCheck(hipMemcpy(this%flux%interior_gpu, &
                            c_loc(this%flux%interior), &
                            sizeof(this%flux%interior), &
                            hipMemcpyHostToDevice))

  endsubroutine fluxmethod_DGModel3D