Multiply a real scalar by a Burgers field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=R_P), | intent(in) | :: | lhs | Left hand side. |
||
class(burgers), | intent(in) | :: | rhs | Right hand side. |
Operator result.
function real_multiply_burgers(lhs, rhs) result(opr)
!---------------------------------------------------------------------------------------------------------------------------------
!< Multiply a real scalar by a Burgers field.
!---------------------------------------------------------------------------------------------------------------------------------
real(R_P), intent(IN) :: lhs !< Left hand side.
class(burgers), intent(IN) :: rhs !< Right hand side.
class(integrand), allocatable :: opr !< Operator result.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
allocate(burgers :: opr)
select type(opr)
class is(burgers)
opr = rhs
opr%U = rhs%U * lhs
endselect
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction real_multiply_burgers