Swap two edge values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(edge), | intent(inout) | :: | i1 | |||
| type(edge), | intent(inout) | :: | i2 |
impure elemental subroutine swap(i1,i2) type(edge),intent(inout) :: i1 type(edge),intent(inout) :: i2 type(edge) :: tmp tmp = i1 i1 = i2 i2 = tmp end subroutine swap