<div dir="ltr">On Sat, Sep 14, 2013 at 5:55 PM, Jose David Bermeol <span dir="ltr"><<a href="mailto:jbermeol@purdue.edu" target="_blank">jbermeol@purdue.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, right now I'm implementing the function MatSolve for MATMPIAIJ matrices, so I can assume that output vector x is an MPI vector. the problem is that my library returns the solution in an array to all my MPI process, so how do I know which elements of the solution should be safe in the local vector x.<br>
</blockquote><div><br></div><div>I do not understand what you are asking. However, each Vec is divided across processes by contiguous sets of rows. The rows</div><div>for a given process can be gotten from VecGetOwnershipRange().</div>
<div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <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
</div></div>