mpi_grp_constructor Function

private function mpi_grp_constructor(comm) result(mpi_grp)

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.

Arguments

Type IntentOptional Attributes Name
integer, intent(in), optional :: comm

MPI communicator

Return Value type(mpi_grp_t)


Calls

proc~~mpi_grp_constructor~~CallsGraph proc~mpi_grp_constructor mpi_grp_constructor mpi_comm_dup mpi_comm_dup proc~mpi_grp_constructor->mpi_comm_dup mpi_comm_rank mpi_comm_rank proc~mpi_grp_constructor->mpi_comm_rank mpi_comm_size mpi_comm_size proc~mpi_grp_constructor->mpi_comm_size proc~mpi_check_error mpi_check_error proc~mpi_grp_constructor->proc~mpi_check_error mpi_abort mpi_abort proc~mpi_check_error->mpi_abort mpi_error_string mpi_error_string proc~mpi_check_error->mpi_error_string

Called by

proc~~mpi_grp_constructor~~CalledByGraph proc~mpi_grp_constructor mpi_grp_constructor interface~mpi_grp_t mpi_grp_t interface~mpi_grp_t->proc~mpi_grp_constructor