<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 9/28/14 1:57 PM, Parvathi M.K wrote:<br>
</div>
<blockquote
cite="mid:CA+Z2ge-n2ks51pyvN3sa37QA9UGkOenBdN6C5SRs9QTgjoSroA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">I want to access the data stored in the vec object
directly without using any functions. Is this possible?
<div><br>
</div>
<div>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. <br>
</div>
</div>
</blockquote>
<br>
I think it's impossible for a good reason (or at least highly
discouraged).<br>
Why don't you want to use a prescribed interface? It's really
light-weight.<br>
But don't forget to call VecRestoreArray after directly manipulating
the data.<br>
<br>
Anton<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<blockquote
cite="mid:CA+Z2ge-n2ks51pyvN3sa37QA9UGkOenBdN6C5SRs9QTgjoSroA@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Sep 28, 2014 at 4:45 PM,
Parvathi M.K <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:phoenixauriga@gmail.com" target="_blank">phoenixauriga@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hey,
<div> </div>
<div>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().</div>
<div><br>
</div>
<div>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? </div>
<div><br>
</div>
<div>Thank you :)</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>Parvathi</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>