Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(primitive_compressible), | intent(inout) | :: | lhs | Left hand side. |
||
| class(primitive_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine prim_assign_prim(lhs, rhs)
!< Operator `=`.
class(primitive_compressible), intent(inout) :: lhs !< Left hand side.
class(primitive_object), intent(in) :: rhs !< Right hand side.
select type(rhs)
class is (primitive_compressible)
lhs%density = rhs%density
lhs%velocity = rhs%velocity
lhs%pressure = rhs%pressure
endselect
endsubroutine prim_assign_prim