Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(advection_diffusion_1d_t), | intent(in) | :: | this | |||
real(kind=prec), | intent(in) | :: | s(1:this%solution%nvar) |
pure function entropy_func_advection_diffusion_1d_t(this,s) result(e)
class(advection_diffusion_1d_t),intent(in) :: this
real(prec),intent(in) :: s(1:this%solution%nvar)
real(prec) :: e
! Local
integer :: ivar
e = 0.0_prec
do ivar = 1,this%solution%nvar
e = e+0.5_prec*s(ivar)*s(ivar)
enddo
endfunction entropy_func_advection_diffusion_1d_t