#include "petscvec.h" PetscErrorCode VecCreateMPI(MPI_Comm comm,PetscInt n,PetscInt N,Vec *v)Collective
comm | - the MPI communicator to use | |
n | - local vector length (or PETSC_DECIDE to have calculated if N is given) | |
N | - global vector length (or PETSC_DETERMINE to have calculated if n is given) |