<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 25, 2016 at 7:18 PM, Xiangdong <span dir="ltr"><<a href="mailto:epscodes@gmail.com" target="_blank">epscodes@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 dir="ltr">Maybe my previous email is not clear. What is the relationship between the parameter x in DMDASetOverlap and the parameter s in DMDACreate2d? Does x need to be smaller than s? Are they completely independent?</div></blockquote><div><br></div><div>Yes. The Overlaps are only used in decomposing the DA into small blocks for things like block GS and NASM.</div><div><br></div><div> Thanks,</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"><div dir="ltr"><div>PetscErrorCode  DMDASetOverlap(DM da,PetscInt x,PetscInt y,PetscInt z)<br></div><div><div class="gmail_extra"><div><br></div></div><div class="gmail_extra"><div class="gmail_extra">PetscErrorCode  DMDACreate2d(MPI_Comm comm,DMBoundaryType bx,DMBoundaryType by,DMDAStencilType stencil_type, PetscInt M,PetscInt N,PetscInt m,PetscInt n,PetscInt dof,PetscInt s,const PetscInt lx[],const PetscInt ly[],DM *da)</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Xiangdong</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 5:23 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
   What arguments are you referring to?<br>
<br>
PetscErrorCode  DMDACreate2d(MPI_Comm comm,DMBoundaryType bx,DMBoundaryType by,DMDAStencilType stencil_type,<br>
                          PetscInt M,PetscInt N,PetscInt m,PetscInt n,PetscInt dof,PetscInt s,const PetscInt lx[],const PetscInt ly[],DM *da)<br>
<br>
the argument s is the stencil width and depends on the finite difference stencil you want to use. There is no da_overlap argument.<br>
<span><font color="#888888"><br>
  Barry<br>
</font></span><div><div><br>
> On Jun 24, 2016, at 4:17 PM, Xiangdong <<a href="mailto:epscodes@gmail.com" target="_blank">epscodes@gmail.com</a>> wrote:<br>
><br>
> Hello everyone,<br>
><br>
> I have a quick question. What is the relationship between da_overlap and the width parameter in dmdacreate2d?<br>
><br>
> From the examples, it seems that width=1 works with da_overlap=4. Could you please explain the relationship or point me to a reference page?<br>
><br>
> Thanks.<br>
><br>
> Xiangdong<br>
<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>