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