Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(grid_dimensions_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(grid_dimensions_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine grid_d_assign_grid_d(lhs, rhs)
!< Operator `=`.
class(grid_dimensions_object), intent(inout) :: lhs !< Left hand side.
type(grid_dimensions_object), intent(in) :: rhs !< Right hand side.
if (allocated(rhs%block_signature)) then
call lhs%destroy
lhs%blocks_number = rhs%blocks_number
allocate(lhs%block_signature, source=rhs%block_signature)
endif
endsubroutine grid_d_assign_grid_d