_gfortran_caf_num_images (The GNU Fortran Compiler)

#### 7.2.4 `_gfortran_caf_num_images` — Querying the maximal number of images ¶

Synopsis:

  `int _gfortran_caf_num_images (caf_team_t team, int32_t *team_number)`

Description:

  This function returns the number of images in the team given by team or team_number, if either one is present. If both are null, then the number of images in the current team is returned.

Arguments:

  team | intent(in), optional; The team the number of images is requested for. If null, the number of images in the current team is returned.
  team_number | intent(in), optional; The team id for which the number of teams is requested; if unset, then number of images in the current team is returned.

Notes:

  When both argument are given, then it is caf-library dependent which argument is examined first. Current implementations prioritize the team argument, because it is easier to retrive the number of images from it.

  Fortran 2008 or later, with no arguments; Fortran 2018 or later with two arguments.