The intention is that you use VecGhostGetLocalForm() first, and then VecGetArray(). That way<br>the size is just the Vec length.<br><br> Matt<br><br><div class="gmail_quote">On Wed, Feb 11, 2009 at 1:49 PM, Fredrik Bengzon <span dir="ltr"><<a href="mailto:fredrik.bengzon@math.umu.se">fredrik.bengzon@math.umu.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
When using VecGetArray(vec, &ptr2vec) on a vector, vec, with ghost nodes, is there a way of getting the size (length) of the ptr2vec array? In other words, how can I avoid out-of-range errors when accessing elements of ptr2vec?<br>
Best Regards<br><font color="#888888">
Fredrik Bengzon, Umeå, Sweden<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>