swap function for hand type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hand), | intent(inout) | :: | i1 | |||
| type(hand), | intent(inout) | :: | i2 |
pure elemental subroutine swap_hands(i1,i2) !! swap function for hand type type(hand),intent(inout) :: i1 type(hand),intent(inout) :: i2 type(hand) :: tmp tmp = i1 i1 = i2 i2 = tmp end subroutine swap_hands