On Thu, Oct 1, 2026 at 3:43 PM Matthew Knepley <[email protected]> wrote:
> On Thu, Oct 1, 2026 at 1:03 PM Noam T. <[email protected]> wrote: > >> >> I create some data structures afterwards to "simplify" their access/use, >> and some of them get lost along the way, somehow, ending up with different >> number of (references to) labels per rank. >> >> >> I think I found the issue. The mesh may have N labels, but only some M >> out of those (often M << N) are used, based on a user-provided list. >> >> While looping through all existing N labels, I choose which to keep track >> of based on label bounds. >> >> do 1 .. n >> DMGetLabelByNum(dm, n, label) >> DMGetLabelBounds(label, pstart, pend) <---- >> >> This returns -1 in some ranks, so it was skipped. >> >> Calling DMPlexLabelComplete changes that, if any points int he label >> belong to the rank (if not, still returns -1, and the label is skipped >> anyway). Though looking at the code of DMPlexLabelComplete, it seems like >> an expensive function. Maybe there is a better approach. >> > > Let me see if I understand, You have a distributed label. Some process > marks a shared point, but another process with that same shared point does > not mark it, and we want to propagate that mark? I think there is a > function that just pushes label values along an SF. Let me check... > I think you can just call DMLabelPropagatePush() with no merge or update. Thanks, Matt > Thanks, > > Matt > > >> Thanks, >> >> --- >> Noam >> > > > -- > What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > -- Norbert Wiener > > https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fP_RJk3ggpK6LyMA2ysHUz0oxYcaO3W5boVHuqo78-PVVjYnUx8F4S8DytncCzRa1m3wbNeYFo0Sx5m2jGay$ > > <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fP_RJk3ggpK6LyMA2ysHUz0oxYcaO3W5boVHuqo78-PVVjYnUx8F4S8DytncCzRa1m3wbNeYFo0Sx9fBton9$ > > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fP_RJk3ggpK6LyMA2ysHUz0oxYcaO3W5boVHuqo78-PVVjYnUx8F4S8DytncCzRa1m3wbNeYFo0Sx5m2jGay$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fP_RJk3ggpK6LyMA2ysHUz0oxYcaO3W5boVHuqo78-PVVjYnUx8F4S8DytncCzRa1m3wbNeYFo0Sx9fBton9$ >
