Thank you Barry!<div><br></div><div>Panruo<br><br><div class="gmail_quote">On Sat, Jul 7, 2012 at 3:10 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
So long as you have the same boundary types and the same array sizes in the i and j direction they give the same distribution.<br>
<span class="HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="HOEnZb"><div class="h5">On Jul 7, 2012, at 3:58 PM, Panruo Wu wrote:<br>
<br>
> Hello,<br>
><br>
> If I create 2 DAs with (almost) identical parameters except DA name<br>
> and dof like:<br>
><br>
> call DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_GHOSTED,<br>
> DMDA_BOUNDARY_GHOSTED, &<br>
> stype, M, N, m, n, dof1, s &<br>
> PETSC_NULL_INTEGER, PETSC_NULL_INTEGER, &<br>
> da1, ierr)<br>
><br>
><br>
><br>
> call DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_GHOSTED,<br>
> DMDA_BOUNDARY_GHOSTED, &<br>
> stype, M, N, m, n, dof2, s &<br>
> PETSC_NULL_INTEGER, PETSC_NULL_INTEGER, &<br>
> da2, ierr)<br>
><br>
><br>
> my question is, will the two DAs have the same distribution scheme?<br>
> Specifically,<br>
> will the DMDAGetCorners() give the same results when querying da1 & da2?<br>
><br>
> Thanks,<br>
> Panruo Wu<br>
<br>
</div></div></blockquote></div><br></div>