Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Burgers1D_t), | intent(in) | :: | this | |||
real(kind=prec), | intent(in) | :: | s(1:this%solution%nvar) | |||
real(kind=prec), | intent(in) | :: | dsdx(1:this%solution%nvar) |
pure function flux1d_Burgers1D_t(this,s,dsdx) result(flux)
class(Burgers1D_t),intent(in) :: this
real(prec),intent(in) :: s(1:this%solution%nvar)
real(prec),intent(in) :: dsdx(1:this%solution%nvar)
real(prec) :: flux(1:this%solution%nvar)
flux(1) = 0.5_prec*s(1)*s(1)-this%nu*dsdx(1)
endfunction flux1d_Burgers1D_t