<div dir="ltr">On Thu, Apr 4, 2013 at 8:24 AM, Carlos Pachajoa <span dir="ltr"><<a href="mailto:cpachaj@gmail.com" target="_blank">cpachaj@gmail.com</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">Hello, <br>
<br>
                           I'm working on a CFD simulator that will be used for educational purposes.<br>
<br>
I'm using PETSc to solve a Poisson equation for the pressure, using DM and a 5-point stencil. I would like to extend it to work on parallel.<br>
<br>
Since the code will also be used to teach some fundamental concepts of parallel programming, it would be ideal if the user can set which rank deals with each subdomain. Out of the DM, one can obtain the corners of the region corresponding to a rank, however, I have not found a function to assign a processor to a region. I know that you can assign a set of rows to any processor when explicitly setting the columns of a matrix, but I wonder if this is also possible using DM.<br>
</blockquote><div><br></div><div style>The DMDA prescribes a process layout grid which you can set yourself using the lx,ly,lz arguments to the constructor.</div><div style><br></div><div style>     Matt</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for your time and your hints.<br>
<br>
Best regards,<br>
<br>
Carlos<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>