cart_comm_2d Function

public function cart_comm_2d() result(c)

Return the Cartesian communicator handle.

Returns MPI_COMM_NULL if cart_setup_2d has not been called yet. halo_exchange_2d and any collective that needs the 2D topology should call this rather than referencing MPI_COMM_WORLD directly.

Arguments

None

Return Value integer