fluxmethod_DGModel1D Subroutine

public subroutine fluxmethod_DGModel1D(this)

Arguments

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

Calls

proc~~fluxmethod_dgmodel1d~~CallsGraph proc~fluxmethod_dgmodel1d fluxmethod_DGModel1D interface~hipmemcpy hipMemcpy proc~fluxmethod_dgmodel1d->interface~hipmemcpy proc~gpucheck gpuCheck proc~fluxmethod_dgmodel1d->proc~gpucheck

Contents

Source Code


Source Code

  subroutine fluxmethod_DGModel1D(this)
    implicit none
    class(DGModel1D),intent(inout) :: this
    ! Local
    integer :: iel
    integer :: i
    real(prec) :: f(1:this%solution%nvar),dfdx(1:this%solution%nvar)

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

      f = this%solution%interior(i,iel,1:this%solution%nvar)
      dfdx = this%solutionGradient%interior(i,iel,1:this%solution%nvar)

      this%flux%interior(i,iel,1:this%solution%nvar) = &
        this%flux1d(f,dfdx)

    enddo

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

  endsubroutine fluxmethod_DGModel1D