Assign one real to an Euler field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(euler_1D), | intent(inout) | :: | lhs | Left hand side. |
||
real(kind=R_P), | intent(in) | :: | rhs | Right hand side. |
subroutine euler_assign_real(lhs, rhs)
!---------------------------------------------------------------------------------------------------------------------------------
!< Assign one real to an Euler field.
!---------------------------------------------------------------------------------------------------------------------------------
class(euler_1D), intent(INOUT) :: lhs !< Left hand side.
real(R_P), intent(IN) :: rhs !< Right hand side.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(lhs%U)) lhs%U = rhs
if (allocated(lhs%previous)) lhs%previous = rhs
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine euler_assign_real