Skip to content

Commit e7bcc48

Browse files
committed
Complete wrapping team features in HAVE_TEAM ifdefs in the test
native-multi-image.F90
1 parent 3a3be3b commit e7bcc48

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/native-multi-image.F90

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ program native_multi_image
4040
#endif
4141

4242
USE, INTRINSIC :: ISO_FORTRAN_ENV
43-
integer :: me, ni, peer, tmp, team_id
43+
integer :: me, ni, peer, tmp
44+
# if HAVE_TEAM
45+
integer :: team_id
46+
# endif
4447
character(len=5) :: c
48+
# if HAVE_TEAM
4549
type(team_type) :: subteam, res
50+
# endif
4651

4752
me = THIS_IMAGE()
4853
ni = NUM_IMAGES()
@@ -105,7 +110,7 @@ program native_multi_image
105110
call CO_BROADCAST(c,1)
106111
# endif
107112

108-
#if HAVE_TEAM
113+
# if HAVE_TEAM
109114
call status("Testing TEAMS...")
110115
res = GET_TEAM(CURRENT_TEAM)
111116
res = GET_TEAM(INITIAL_TEAM)
@@ -126,7 +131,7 @@ program native_multi_image
126131
call sync_all
127132
write(*,'(A,I3)') "After END TEAM statement, TEAM_NUMBER() is ", team_number()
128133

129-
#endif
134+
# endif
130135

131136
call sync_all
132137
write(*,'(A,I1,A,I1,A)') "Goodbye from image ", me, " of ", ni, " images"

0 commit comments

Comments
 (0)