[petsc-users] Query regarding accessing data in a Petsc Vec object

Anton Popov popov at uni-mainz.de
Sun Sep 28 06:17:40 CDT 2014


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetArray.html

On 9/28/14 1:15 PM, Parvathi M.K wrote:
> Hey,
> I am fairly new to PetSc. I was just curious as to how you can 
> directly access the data stored in a Petsc object, say a vector 
> without using VecGetValues().
>
> I've gone through the header files, petscimpl.h and vecimpl.h which 
> contain the definitions of the PetscObject and Vec structures. I 
> cannot figure out which member of the struct holds the Vector data 
> entered using VecSet(). Also, I could not find the definitions of the 
> functions in VecOps. Could someone tell me where I can find these 
> function definitions?
>
> Thank you :)
>
> Parvathi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140928/d4637106/attachment.html>


More information about the petsc-users mailing list