<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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"<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2016年08月11日 23:29, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4G=qq4J=34tA7F7EbkGQJ0cK6n9UZw-j23xTH1sg=2y-Lg@mail.gmail.com"
      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 moz-do-not-send="true"
                href="mailto:leejearl@126.com" target="_blank">leejearl@126.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;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:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <p><span class="HOEnZb"><font color="#888888"><br>
                      leejearl</font></span></p>
                <div>
                  <div class="h5"> <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 moz-do-not-send="true"
href="https://www.archer.ac.uk/training/virtual/files/2015/06-PETSc/slides.pdf"
                            target="_blank">https://www.archer.ac.uk/<wbr>training/virtual/files/2015/<wbr>06-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
                              moz-do-not-send="true"
                              href="mailto:leejearl@126.com"
                              target="_blank">leejearl@126.com</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;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">
          <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>
    </blockquote>
    <br>
  </body>
</html>