> 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. Thanks, --- Noam
