Operator prim * real.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(primitive_compressible), | intent(in) | :: | lhs | Left hand side. |
||
| real(kind=R8P), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function prim_multiply_real(lhs, rhs) result(operator_result)
!< Operator `prim * real`.
class(primitive_compressible), intent(in) :: lhs !< Left hand side.
real(R8P), intent(in) :: rhs !< Right hand side.
class(primitive_object), allocatable :: operator_result !< Operator result.
allocate(primitive_compressible :: operator_result)
select type(operator_result)
class is(primitive_compressible)
operator_result%density = lhs%density * rhs
operator_result%velocity = lhs%velocity * rhs
operator_result%pressure = lhs%pressure * rhs
endselect
endfunction prim_multiply_real