int VecCreateGhostWithArray(MPI_Comm comm,int n,int N,int nghost,const int ghosts[], const Scalar array[],Vec *vv)Collective on MPI_Comm
comm | - the MPI communicator to use |
n | - local vector length |
N | - global vector length (or PETSC_DECIDE to have calculated if n is given) |
nghost | - number of local ghost points |
ghosts | - global indices of ghost points (or PETSC_NULL if not needed) |
array | - the space to store the vector values (as long as n + nghost) |
Level:advanced
Location:src/vec/impls/mpi/pbvec.c
Vector Index
Table of Contents