#include "petscsys.h" PetscErrorCode PetscSplitOwnership(MPI_Comm comm,PetscInt *n,PetscInt *N)Collective on MPI_Comm (if n or N is PETSC_DECIDE)
|comm||- MPI communicator that shares the object being divided|
|n||- local length (or PETSC_DECIDE to have it set)|
|N||- global length (or PETSC_DECIDE)|
If one processor calls this with n or N of PETSC_DECIDE then all processors must. Otherwise, an error is thrown in debug mode while the program will hang in optimized (i.e. configured --with-debugging=0) mode.