If you have an existing Vec (which you can access via 
PetscVector::vec()), you can use VecDuplicate:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecDuplicate.html

or VecDuplicateVecs:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecDuplicateVecs.html

If you want to maintain all of the libMesh-related data structures and 
to have libMesh take case of memory management, you can also use 
PetscVector::clone() or PetscVector::zero_clone().

-- Boyce

On 6/21/11 11:51 AM, Ataollah Mesgarnejad wrote:
> Dear all,
>
> I know PetscVector allows me to create a libmesh compatible vector from a 
> PETSc Vec. Now, is there a way to create a PETSc Vec that has the parallel 
> structure of one of my system's solution so I can use Tao's output to update 
> that system's solution?
>
> Thanks,
> Ata
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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