fluxmethod_DGModel3D Subroutine

public subroutine fluxmethod_DGModel3D(this)

Arguments

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

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 iel = 1,this%mesh%nelem
      do k = 1,this%solution%interp%N+1
        do j = 1,this%solution%interp%N+1
          do i = 1,this%solution%interp%N+1

            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
        enddo
      enddo
    enddo

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

  endsubroutine fluxmethod_DGModel3D