cart_rank_2d Function

public function cart_rank_2d() result(r)

This rank's index within the Cartesian communicator.

Returns -1 if cart_setup_2d has not been called yet or MPI_Comm_rank fails. Callers that gate file I/O on rank 0 must use THIS, not the COMM_WORLD rank: MPI_Cart_create(reorder=.true.) may renumber ranks, so the cart-rank-0 process (which holds gathered data) can differ from world-rank-0.

Arguments

None

Return Value integer