On Wed, Sep 30, 2026 at 9:13 PM Noam T. <[email protected]> wrote:
>
> I might need another round of explanation to understand the problem.
> However, this sounds like a pattern I use
> everywhere in the examples. In fact, you can see it by running a parallel
> test from SNES ex12 or ex13. The boundary
> is marked using the label "marker". Vertices are indeed shared between
> ranks. When distributed, the marker label marks the vertex on all processes.
>
>
> I'll have a look into those examples. That is indeed the pattern I am
> trying to follow, with some vertices needing to be marked in all ranks.
>
> In short, the issue I'm having is exactly this:
>
> When distributed, the marker label marks the vertex on all processes.
>
>
> Labels are not distributed. These labels come from the mesh file (msh to
> be precise; the labels correspond to the "physical groups", included by
> using the flag "-dm_plex_gmsh_use_regions").
>
> After calling DMPlexDistribute(), labels are not distributed. Is this
> something that needs to be explicitly requested?
>
No. There must be some misunderstanding here. Labels in the mesh are
_always_ distributed by DMPlexDistribute().
I also have examples that read labels from GMsh files. Your files should
not be any different. Can you make a small example that shows your problem?
I probably just need the mesh.
Thanks,
Matt
> Oh, I think I know what is going on. When automatically distributing
> labels, I want all processes to possess each label, even if it is empty.
> This prevents a lot of communication to establish who owns which label.
> Does this fix it?
>
>
> Yes, it seems distributing the labels would be the solution. Until dealing
> with BCs it did not become an issue.
>
> Thank you,
>
> ---
> 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!acdJugzuwLIjl1wmypFN-CCKSKp1fcKkjrMyIEjwh7IcgN7hBTllQopXgGgywNMNiv8RD1VLPyYVF465OgP5$
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!acdJugzuwLIjl1wmypFN-CCKSKp1fcKkjrMyIEjwh7IcgN7hBTllQopXgGgywNMNiv8RD1VLPyYVF12k_-7i$
>