Multiply a real scalar by an Euler field.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in) | :: | lhs | Left hand side. |
||
| class(euler_1d), | 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(R8P), intent(in) :: lhs !< Left hand side.
class(euler_1d), intent(in) :: rhs !< Right hand side.
class(integrand), allocatable :: opr !< Operator result.
integer(I4P) :: i !< Counter.
allocate(euler_1d :: opr)
select type(opr)
class is(euler_1d)
opr = rhs
do i=1, rhs%Ni
opr%U(i) = lhs * rhs%U(i)
enddo
endselect
endfunction real_multiply_euler