A question about VecSet
Fredrik Bengzon
fredrik.bengzon at math.umu.se
Thu Feb 12 11:57:32 CST 2009
Hi,
I would like to know if I need to call VecGhostUpdateBegin\End on a
vector with ghost nodes after a call to VecSet on the same vector, i.e.,
// Declare vector v with VecCreateGhost etc.
VecSet(v, 0.0); // Does this set also ghosted entries to zero ?
VecGhostUpdateBegin(v, INSERT_VALUES, SCATTER_FORWARD); // Is this
necessary ?
VecGhostUpdateEnd (v, INSERT_VALUES, SCATTER_FORWARD);
Sincerely,
Fredrik Bengzon
More information about the petsc-users
mailing list