Parameter `globalrank` of function `sion_paropen_mpi` unused?
Contrary to what the documentation says
* @param[in,out] globalrank global rank of process
* any globally unique id for current task. It
* will be stored in sion file. Useful if comm is
* not MPI_COMM_WORLD (typically:
* globalrank = rank in MPI_COMM_WORLD)
globalrank
is not an in
parameter (it is never read by sion_paropen_mpi
) and is also not stored inside the opened file. The only access to the parameter is writing the value of gRank
to it, the rank of the calling process in the communicator gComm
. The same result – if desired – can be accomplished by the user by calling
MPI_Comm_rank(gComm, &globalrank);