Quadratic entropy: eta(u) = u^2 / 2
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ECAdvection2D_t), | intent(in) | :: | this | |||
| real(kind=prec), | intent(in) | :: | s(1:this%nvar) |
pure function entropy_func_ECAdvection2D_t(this,s) result(e)
!! Quadratic entropy: eta(u) = u^2 / 2
class(ECAdvection2D_t),intent(in) :: this
real(prec),intent(in) :: s(1:this%nvar)
real(prec) :: e
e = 0.5_prec*s(1)*s(1)
if(.false.) e = e+this%u ! suppress unused-dummy-argument warning
endfunction entropy_func_ECAdvection2D_t