comm_handling_m Module

Contains information about MPI processes and functionality to change the communicator.


Uses


Functions

public function get_communicator()

Returns the MPI communicator

Arguments

None

Return Value integer

public function is_master()

Returns if the current proc is the MPI master or not

Arguments

None

Return Value logical


Subroutines

public subroutine setup_comm(comm, rank_master)

Sets the communication to the given communicator. Allows to change the rank of the master proc.

Arguments

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

Communicator

integer, intent(in), optional :: rank_master

Rank of the master process