Operator real * prim.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in) | :: | lhs | Left hand side. |
||
| class(primitive_compressible), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function real_multiply_prim(lhs, rhs) result(operator_result)
!< Operator `real * prim`.
real(R8P), intent(in) :: lhs !< Left hand side.
class(primitive_compressible), 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 * rhs%density
operator_result%velocity = lhs * rhs%velocity
operator_result%pressure = lhs * rhs%pressure
endselect
endfunction real_multiply_prim