[petsc-users] Vec entries altered incorrectly

Juha Jäykkä juhaj at iki.fi
Sat Dec 17 16:49:14 CST 2011

>    VecDuplicate does NOT copy the vector values over to the newly created
> vector. You must call VecCopy() after the VecDuplicate() if you want to
> copy the values over.

No, what I do *not* want to happen is DAGlobalToLocalBegin(da, vec1...) to 
overwrite values in vec2. I think this is actually a bug in PETSc, but cannot 
be sure because I do not understand the internals of Vec and DA operations 
well enough. The question really is, why would DAGlobalToLocalBegin overwrite 
values in an unrelated vector? (Well, almost unrelated: it was created by 
VecDuplicate from the other vector.)


		| Juha Jäykkä, juhaj at iki.fi			|
		| http://www.maths.leeds.ac.uk/~juhaj		|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111217/8968d756/attachment.pgp>

More information about the petsc-users mailing list