On Sat, Jun 18, 2011 at 17:26, Ataollah Mesgarnejad
<[email protected]>wrote:

> But I'm not sure if the two vectors share the same address or do I need to
> do somehow update the gradient vector given by Tao when I'm done with?


This constructor just holds a reference to the vector you passed in, so you
should be able to do the following:

// suppose you have Vec X given to you by TAO:

PetscVector Xlibmesh(X);
// do libmesh assembly, putting result in Xlibmesh
// it is internally propagated to X
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to