TEAM_NUMBER — Retrieve team id of given team ¶RESULT = TEAM_NUMBER([TEAM])Returns the team id for the given TEAM as assigned by FORM TEAM.
If TEAM is absent, returns the team number of the current team.
Transformational function
| TEAM | (optional, intent(in)) The handle of the team for which the number, aka id, is desired. |
Default integer. The id as given in a call FORM TEAM. Applying
TEAM_NUMBER to the initial team will result in -1 to be returned.
Returns the id of the current team, if TEAM is null.
use, intrinsic :: iso_fortran_env type(team_type) :: t print *, team_number() ! -1 form team (99, t) print *, team_number(t) ! 99
Fortran 2018 and later.
GET_TEAM — Get the handle of a team,
TEAM_NUMBER — Retrieve team id of given team