Assignment between two options.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(option), | intent(inout) | :: | lhs | Left hand side. |
||
type(option), | intent(in) | :: | rhs | Rigth hand side. |
elemental subroutine assign_option(lhs, rhs)
!< Assignment between two options.
class(option), intent(inout) :: lhs !< Left hand side.
type(option), intent(in) :: rhs !< Rigth hand side.
if (rhs%oname%is_allocated()) lhs%oname = rhs%oname
if (rhs%ovals%is_allocated()) lhs%ovals = rhs%ovals
if (rhs%ocomm%is_allocated()) lhs%ocomm = rhs%ocomm
endsubroutine assign_option