subroutine sourcemethod_DGModel3D_t(this)
implicit none
class(DGModel3D_t),intent(inout) :: this
! Local
integer :: i,j,k,iel
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%source%interior(i,j,k,iel,1:this%nvar) = this%source3d(s,dsdx)
enddo
endsubroutine sourcemethod_DGModel3D_t