<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><br></div><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 class=""><font color="#888888"><br>
  Barry<br>
</font></span><div class=""><div class="h5"><br>
> On Jun 24, 2016, at 4:17 PM, Xiangdong <<a href="mailto:epscodes@gmail.com">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>