mpi_world Function

public function mpi_world() result(comm)

Return the world communicator handle. Convenience accessor so call sites never reference MPI_COMM_WORLD directly. Always call this function at the point of use rather than caching the return value, so the call site stays correct once sub-communicators are introduced.

Arguments

None

Return Value integer