<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 11, 2016 at 8:00 PM, leejearl <span dir="ltr"><<a href="mailto:leejearl@126.com" target="_blank">leejearl@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Thank you for your reply. I have attached the code, grid and the
      error message.</p>
    <p>cavity.c is the code file, cavity.exo is the grid, and error.dat
      is the error message.</p>
    <p>The command is "mpirun -n 2 ./cavity</p></div></blockquote><div><br></div><div>Can you verify that you are running the master branch? I just ran this and got</div><div><br></div><div><div>DM Object: 2 MPI processes</div><div>  type: plex</div><div>DM_0x84000004_0 in 2 dimensions:</div><div>  0-cells: 5253 5252</div><div>  1-cells: 10352 10350</div><div>  2-cells: 5298 (198) 5297 (198)</div><div>Labels:</div><div>  ghost: 2 strata of sizes (199, 400)</div><div>  vtk: 1 strata of sizes (4901)</div><div>  Cell Sets: 1 strata of sizes (5100)</div><div>  Face Sets: 3 strata of sizes (53, 99, 50)</div><div>  depth: 3 strata of sizes (5253, 10352, 5298)</div></div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <div>On 2016年08月11日 23:29, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Thu, Aug 11, 2016 at 3:14 AM,
            leejearl <span dir="ltr"><<a href="mailto:leejearl@126.com" target="_blank">leejearl@126.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <p>Hi, <br>
                      Thank you for your reply. It help me very much.<br>
                      But, for "/petsc-3.7.2/src/ts/examples/<wbr>tutorials/ex11.c",
                  when I set the overlap to 2 levels, the command is <br>
                  "mpirun -n 3 ./ex11 -f annulus-20.exo
                  -ufv_mesh_overlap 2 -physics sw", it suffers a error.<br>
                      It seems to me that setting overlap to 2 is very
                  common. Are there issues that I have not take into
                  consideration?<br>
                      Any help are appreciated.</p>
              </div>
            </blockquote>
            <div>I will check this out. I have not tested an overlap of
              2 here since I generally use nearest neighbor FV methods
              for</div>
            <div>unstructured stuff. I have test examples that run fine
              for overlap > 1. Can you send the entire error message?</div>
            <div><br>
            </div>
            <div>If the error is not in the distribution, but rather in
              the analytics, that is understandable because this example
              is only</div>
            <div>intended to be run using a nearest neighbor FV method,
              and thus might be confused if we give it two layers of
              ghost</div>
            <div>cells.</div>
            <div><br>
            </div>
            <div>   Matt</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <p><span><font color="#888888"><br>
                      leejearl</font></span></p>
                <div>
                  <div> <br>
                    <div>On 2016年08月11日 14:57, Julian Andrej wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hi,
                        <div><br>
                        </div>
                        <div>take a look at slide 10 of [1], there is
                          visually explained what the overlap between
                          partitions is.</div>
                        <div><br>
                        </div>
                        <div>[1] <a href="https://www.archer.ac.uk/training/virtual/files/2015/06-PETSc/slides.pdf" target="_blank">https://www.archer.ac.uk/t<wbr>raining/virtual/files/2015/06-<wbr>PETSc/slides.pdf</a></div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Thu, Aug 11, 2016 at
                          8:48 AM, leejearl <span dir="ltr"><<a href="mailto:leejearl@126.com" target="_blank">leejearl@126.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, all:<br>
                                I want to use PETSc to build my FVM
                            code. Now, I have a question about<br>
                            the function  DMPlexDistribute(DM dm,
                            PetscInt overlap, PetscSF *sf, DM
                            *dmOverlap) .<br>
                            <br>
                                In the example
                            "/petsc-3.7.2/src/ts/examples/<wbr>tutorials/ex11.c".
                            When I set the overlap<br>
                            as 0 or 1, it works well. But, if I set the
                            overlap as 2, it suffers a problem.<br>
                                I am confused about the value of
                            overlap. Can it be set as 2? What is the
                            meaning of<br>
                            the parameter overlap?<br>
                                Any helps are appreciated!<span><font color="#888888"><br>
                                <br>
                                leejearl<br>
                                <br>
                                <br>
                                <br>
                              </font></span></blockquote>
                        </div>
                        <br>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
          <br clear="all"><span class=""><font color="#888888">
          <div><br>
          </div>
          -- <br>
          <div 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>
        </font></span></div>
      </div>
    </blockquote>
    <br>
  </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>