<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 3, 2016 at 11:33 AM, Massoud Rezavand <span dir="ltr"><<a href="mailto:msdrezavand@gmail.com" target="_blank">msdrezavand@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear PETSc team,<div><br></div><div>Supposing to have a dynamic Mat and Vec, if I let PETSc to decide the number of local rows and local columns, i.e </div><div><br></div><div>MatSetSizes(A, PETSC_DECIDE, PETSC_DECISDE, M, N)</div><div><br></div><div>How can I get these numbers from PETSc?</div></div></blockquote><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetLocalSize.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetLocalSize.html</a><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetLocalSize.html#MatGetLocalSize">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetLocalSize.html#MatGetLocalSize</a><br></div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks,</div><div>Massoud</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>