I want to access the data stored in the vec object directly without using any functions. Is this possible?
I tried using something like p->hdr._ in a printf statement (where p is a vector). I wish to know which element of the _p_Vec structure stores the data. On Sun, Sep 28, 2014 at 4:45 PM, Parvathi M.K <[email protected]> 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 >
