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...
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!fRsEpsqIDvaKMeBYBy7zLzbl2UP5zeK9hNAU5X0jysDXFlSc0suRKEB1NOecZq1IyBpXk2IwFvOALWVtfAH0$
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fRsEpsqIDvaKMeBYBy7zLzbl2UP5zeK9hNAU5X0jysDXFlSc0suRKEB1NOecZq1IyBpXk2IwFvOALdwfzh32$
>