VecCreateGhost
Creates a parallel vector with ghost padding on each processor.
Synopsis
int VecCreateGhost(MPI_Comm comm,int n,int N,int nghost,int *ghosts,Vec *vv)
Collective on
MPI_Comm
Input Parameters
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
|
Output Parameter
vv -the global vector representation (without ghost points as part of vector)
Notes:
Use VecGhostGetLocalRepresentation() to access the local, ghosted representation
of the vector.
Keywords
vector, create, MPI, ghost points, ghost padding
See Also
VecCreateSeq(), VecCreate(), VecDuplicate(), VecDuplicateVecs(), VecCreateMPI(),
VecGhostGetLocalRepresentation(), VecGhostRestoreLocalRepresentation(),
VecCreateGhostWithArray(), VecCreateMPIWithArray()
Examples
src/vec/examples/tutorials/ex9.c
Location: src/vec/impls/mpi/pbvec.c
Vector Index
Table of Contents