<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 19, 2013 at 4:35 PM, Geoffrey Irving <span dir="ltr"><<a href="mailto:irving@naml.us" target="_blank">irving@naml.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The documentation for DMPlexGetStratumIS helpfully explains that the<br>
"value" argument is<br>
<br>
    - value - The stratum value<br></blockquote><div><br></div><div>This is exactly right. A DMLabel is a map from value --> {set of integers}. There</div><div>are no builtin semantics on the values.</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One has to look in DMPlexStratify to find that the value is probably<br>
(the word "value" isn't actually used) either the dimension or the<br>
codimension.  But not which!<br></blockquote><div><br></div><div>DMPlexStratify() builds a DMLabel called "depth". The values in this label</div><div>are point depths in the mesh graph.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The documentation for DMPlexStratify seems to imply that the meaning<br>
of the stratum value is up to the user.  Is that right?  If so it<br>
makes it hard to design robust libraries; the library would have to<br>
either know how the DMPlex was created or reverse engineer the<br>
dimension 0 stratum from the coordinate section (or similar<br>
hideousness).<br>
<br>
If there is a convention, can I add it to the documentation of<br>
DMPlexGetStratumIS and DMPlexGetStratumSize?</blockquote><div><br></div><div>These are documenting the generic DMLabel interface. These functions are</div><div>in fact just the delegator pattern, where they dispatch to the named label. I</div>
<div>am considering just eliminating all of them in favor of DMGetLabel().</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="HOEnZb"><font color="#888888"><br>
Geoffrey<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>