> 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?

> 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

Reply via email to