VecGhostUpdateEnd

End the vector scatter to update the vector from local representation to global or global representation to local.

Synopsis

int VecGhostUpdateEnd(Vec g, InsertMode insertmode,ScatterMode scattermode)
Collective on Vec

Input Parameters

g - the vector (obtained with VecCreateGhost() or VecDuplicate())
insertmode - one of ADD_VALUES or INSERT_VALUES
scattermode - one of SCATTER_FORWARD or SCATTER_REVERSE

Notes

Use the following to update the ghost regions with correct values from the owning process
      VecGhostUpdateBegin(v,INSERT_VALUES,SCATTER_FORWARD);
      VecGhostUpdateEnd(v,INSERT_VALUES,SCATTER_FORWARD);
Use the following to accumulate the ghost region values onto the owning processors
      VecGhostUpdateBegin(v,ADD_VALUES,SCATTER_REVERSE);
      VecGhostUpdateEnd(v,ADD_VALUES,SCATTER_REVERSE);
Use the following to accumulate the values onto the owning processorsand then set the ghost values correctly call the later followed by the former.

See Also

VecCreateGhost(), VecGhostUpdateBegin(), VecGhostGetLocalRepresentation(),
VecGhostRestoreLocalRepresentation(),VecCreateGhostWithArray()

Examples

src/vec/examples/tutorials/ex9.c

Location: src/vec/impls/mpi/pbvec.c
Vector Index
Table of Contents