We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f2998 commit 9c4176aCopy full SHA for 9c4176a
gcc/testsuite/gfortran.dg/team_change_1.f90
@@ -6,10 +6,17 @@
6
use iso_fortran_env, only : team_type
7
implicit none
8
type(team_type) :: team
9
- integer :: orig_i
+ integer :: new_team
10
+ integer, parameter :: standard_initial_value=-1
11
- orig_i = this_image ()
12
- form team (orig_i + 1,team)
13
- change team (team)
14
- if ( orig_i + 1 .NE. this_image() ) call abort
+ if (team_number()/=standard_initial_value) call abort
+
+ new_team = mod(this_image(),2)+1
15
16
+ form team (new_team,team)
17
+ change team (team)
18
+ if (team_number()/=new_team) call abort
19
+ end team
20
21
22
end
0 commit comments