Operator cons * real.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(conservative_compressible), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function cons_multiply_real(lhs, rhs) result(operator_result)
!< Operator `cons * real`.
class(conservative_compressible), intent(in) :: lhs !< Left hand side.
real(R8P), intent(in) :: rhs !< Right hand side.
class(conservative_object), allocatable :: operator_result !< Operator result.
allocate(conservative_compressible :: operator_result)
select type(operator_result)
class is(conservative_compressible)
operator_result%density = lhs%density * rhs
operator_result%momentum = lhs%momentum * rhs
operator_result%energy = lhs%energy * rhs
endselect
endfunction cons_multiply_real