Contructor for mpi_grp_t class.
This sets the communicator of the group and gets the size of the group and rank of current process. If no communicator is provided, it will use the default defined when calling mpi_mod_init.
Note that when the undefined communicator is used, the group size is 1 and the rank to 0, such that the code can work in serial mode.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | comm |
MPI communicator |