Skip to content

Ignore interior-only facet markers in triplot - #5739

Open
pbrubeck wants to merge 1 commit into
mainfrom
pbrubeck/triplot-exterior-markers
Open

pbrubeck wants to merge 1 commit into
mainfrom
pbrubeck/triplot-exterior-markers

Conversation

@pbrubeck

Copy link
Copy Markdown
Contributor

Summary

triplot now assigns boundary colours and legend entries only to markers present on exterior facets. An interior-only marker previously produced an empty collection and a warning, and could take a colour intended for a boundary when the caller supplied one colour per boundary.

Implementation

Intersect each facet marker's DMPlex stratum with the exterior facet points before choosing colours. For extruded meshes, use the vertical exterior facets for numeric markers and include bottom and top for nonperiodic extrusion.

The regression was introduced by the pyop3 merge on main. #3318

Evidence

  • Before the fix, the new regression test produced an extra legend entry with default colours and omitted the last boundary with custom colours.
  • With the fix, all 34 tests in tests/firedrake/output/test_plotting.py pass. make srclint passes.
  • Checked boundary labels for periodic and nonperiodic extrusions. The fault-elasticity demo on the BrokenMesh branch passed with the patch applied, and the empty-subdomain warnings for markers 4 and 5 disappeared.

Merge Danger

The change is scoped to triplot and can be reverted with a single commit.

AI tool used · OpenAI Codex

@pbrubeck pbrubeck added the LLM used An LLM was used in the production of this PR label Nov 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LLM used An LLM was used in the production of this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant