<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 3, 2017 at 10:52 PM, Adrian Croucher <span dir="ltr"><<a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Would it also work if I just didn't use DMPlexGetHybridBounds()
      to differentiate between partition ghost cells and boundary ghost
      cells, but instead checked the value of the "ghost" DMLabel?</p></div></blockquote><div>Yes.</div><div><br></div><div>   Matt <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><p>It appears that DMPlexConstructGhostCells() labels boundary
      ghosts with the ghost label value 1, and partition ghosts with
      value 2 (in DMPlexShiftLabels_Internal()).</p>
    <p>If that is reliable, then it might save me having to make sure
      the boundary ghosts always come last.</p>
    <p>- Adrian<br>
    </p>
    <br>
    <div class="m_-378403521993516478moz-cite-prefix">On 04/08/17 15:11, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Thu, Aug 3, 2017 at 10:07 PM,
            Adrian Croucher <span dir="ltr"><<a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am
              adding cells onto a DMPlex (for dual porosity). I notice
              that normally the ghost cells in a DMPlex are at the end
              of the cell list.<br>
              <br>
              Does it matter if the cells I add come after those ghost
              cells, or should the ghosts always come last?<br>
              <br>
              It seems to me it probably shoudn't matter if the
              partition ghosts (created by DMPlexDistribute()) are not
              at the end. In my cell loops I just check the value of the
              ghost DMLabel and skip them if necessary.<br>
              <br>
              But perhaps the boundary ghosts (created by
              DMPlexConstructGhostCells()) need to come last? Otherwise
              the output from DMPlexGetHybridBounds() (to get the bounds
              on 'interior' cells, i.e. non-boundary-ghosts) probably
              wouldn't make much sense?</blockquote>
            <div><br>
            </div>
            <div>Yes, the only reason to have them last is to have
              GetHybridBounds() work for that case.</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"><span class="m_-378403521993516478HOEnZb"><font color="#888888"><br>
                  - Adrian<br>
                  <br>
                  -- <br>
                  Dr Adrian Croucher<br>
                  Senior Research Fellow<br>
                  Department of Engineering Science<br>
                  University of Auckland, New Zealand<br>
                  email: <a href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a><br>
                  tel: <a href="tel:%2B64%20%280%299%20923%204611" value="+6499234611" target="_blank">+64 (0)9 923 4611</a><br>
                  <br>
                </font></span></blockquote>
          </div>
          <br>
          <br clear="all"><span class="HOEnZb"><font color="#888888">
          <div><br>
          </div>
          -- <br>
          <div class="m_-378403521993516478gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>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><br>
              </div>
              <div><a href="http://www.caam.rice.edu/%7Emk51/" target="_blank">http://www.caam.rice.edu/~<wbr>mk51/</a><br>
              </div>
            </div>
          </div>
        </font></span></div><span class="HOEnZb"><font color="#888888">
      </font></span></div><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-378403521993516478moz-signature" cols="72">-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="m_-378403521993516478moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz" target="_blank">a.croucher@auckland.ac.nz</a>
tel: <a href="tel:+64%209-923%204611" value="+6499234611" target="_blank">+64 (0)9 923 4611</a>
</pre>
  </font></span></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>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><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">http://www.caam.rice.edu/~mk51/</a><br></div></div></div>
</div></div>