Skip to content

Commit 828ee38

Browse files
author
Alessandro Fanfarillo
committed
New test for teams
1 parent 6a55609 commit 828ee38

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/tests/unit/teams/teams_send.f90

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
program test_teams1
2+
use iso_fortran_env, only : team_type
3+
implicit none
4+
5+
type(team_type) :: team, initial
6+
integer :: x[*], me
7+
8+
me = this_image()
9+
x = me
10+
11+
form team (mod(me,2)+1,team)
12+
13+
change team (team)
14+
15+
if(me == 1) x[2, team = initial] = me
16+
17+
end team
18+
19+
if(me == 2 .and. x == 1) print *,"Test passed."
20+
21+
end program

0 commit comments

Comments
 (0)