subroutine CalculateTendency_DGModel1D_t(this)
implicit none
class(DGModel1D_t),intent(inout) :: this
! Local
integer :: i,iEl,iVar
call this%solution%BoundaryInterp()
call this%solution%SideExchange(this%mesh)
call this%PreTendency() ! User-supplied
call this%SetBoundaryCondition() ! User-supplied
if(this%gradient_enabled) then
call this%CalculateSolutionGradient()
call this%SetGradientBoundaryCondition() ! User-supplied
call this%solutionGradient%AverageSides()
endif
call this%SourceMethod() ! User supplied
call this%BoundaryFlux() ! User supplied
call this%FluxMethod() ! User supplied
call this%flux%MappedDGDerivative(this%fluxDivergence%interior)
do concurrent(i=1:this%solution%N+1, &
iel=1:this%mesh%nElem,ivar=1:this%solution%nVar)
this%dSdt%interior(i,iEl,iVar) = &
this%source%interior(i,iEl,iVar)- &
this%fluxDivergence%interior(i,iEl,iVar)
enddo
endsubroutine CalculateTendency_DGModel1D_t