The rank of the calling process¶
SAF_RANK
is a macro defined in saf.h.
Synopsis:
-
SAF_RANK
(Db)¶
Description: A macro which evaluates to the MPI_Rank
of the calling processor in the communicator used to open the
database. If NULL
is passed for the Db
argument, the MPI_Rank
of the calling process in the communicator used
to initialize the library is returned. In serial, a value of 0 is returned. If not called within an enclosing
pair of saf_init / saf_final calls, the value -1 is returned (See *Constants*).
See Also:
- saf_final: 4.2: Finalize access to the library
- saf_init: 4.3: Initialize the library
- Miscellaneous Utilities: Introduction for current chapter