<div dir="ltr"><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetOwnershipRanges.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetOwnershipRanges.html</a> will give you the ownership ranges in each dimension.<br>
<div><br></div><div>- Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 10:08 AM, Petr Kotas <span dir="ltr"><<a href="mailto:petr.kotas@gmail.com" target="_blank">petr.kotas@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 text="#000000" bgcolor="#FFFFFF">
    Hi guys,<br>
    <br>
    I have probably an easy question. How do I extract distribution of
    processes from already created DM object. Which was created with
    call to <br>
    <br>
    <tt>    </tt><tt>ierr = DMDACreate3d(PETSC_COMM_WORLD,
      boundaryType, boundaryType, boundaryType, DMDA_STENCIL_BOX,</tt><tt><br>
    </tt><tt>                                    M[0], M[1], M[2],
      PETSC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, dof, stencilSize,</tt><tt><br>
    </tt><tt>                                    PETSC_NULL, PETSC_NULL,
      PETSC_NULL, &da);</tt><br>
    <br>
    where  <i>boundaryType</i>, <i>M[i], dof, stencilSize </i>are my
    variables. <br>
    <br>
    Simply, I would like to to know how PETSC_DECIDE(ed) about the
    layout. I need it for my other part of the code.<br>
    <br>
    Thank You,<br>
    Petr Kotas<br>
  </div>

</blockquote></div><br></div>