Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(LinearShallowWater2D_t), | intent(in) | :: | this | |||
real(kind=prec), | intent(in) | :: | s(1:this%solution%nvar) |
pure function entropy_func_LinearShallowWater2D_t(this,s) result(e)
class(LinearShallowWater2D_t),intent(in) :: this
real(prec),intent(in) :: s(1:this%solution%nvar)
real(prec) :: e
e = 0.5_prec*(this%H*s(1)*s(1)+ &
this%H*s(2)*s(2)+ &
this%g*s(3)*s(3))
endfunction entropy_func_LinearShallowWater2D_t