BUG: no way to query non-empty boundary segments without generating warnings
I maintainer di solito rispondono entro 1 giorno
@connorjward ci sta già lavorando.
Dal 24/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Thetis and https://github.com/mesh-adaptation/movement/tree/main/movement use mesh.exterior_facets.unique_markers to figure out which boundary markers exist to do some preprocessing for each of those. Since #5005 this list contains all of the original markers with those that "disappear" as a periodic boundary now corresponding to an empty set - where as previously IIRC exterior_facets.unique_markers would only contain the remaining, active markers. In Thetis it hasn't immediately broken anything, because it just computes some integrals over the empty boundary segments - but it does produce quite a few menacing warning messages
firedrake:WARNING Subdomain (np.int32(1),) is empty. This is likely an error. Did you choose the right label?
firedrake:WARNING Subdomain (np.int32(2),) is empty. This is likely an error. Did you choose the right label?
firedrake:WARNING Subdomain (np.int32(3),) is empty. This is likely an error. Did you choose the right label?
firedrake:WARNING Subdomain (np.int32(4),) is empty. This is likely an error. Did you choose the right label?
Would it break anything to leave out the empty/periodic boundary markers from that list? So it would just be [1,2] or [3,4], or [] for a doubly periodic rectangle? Or alternatively, is there/could we have a mechanism to query which ones are empty without triggering warnings? - e.g. even if I do:
boundary_markers = [bm for bm in mesh.exterior_facets.unique_markers if mesh.exterior_facets.subset(bm).size > 0]
I get the same warning messages triggered by accessing .subset(bm)
- Lingua principale
- Python
- Stelle
- 684
- Fork
- 204
- Merge medio
- 4g 14h
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firedrakeproject/firedrake
-
BUG: NonlinearVariationalSolver errors with adj_kwargsForse già presa @dham l’ha presa 151 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
firedrakeproject/firedrake#5186 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
firedrakeproject/firedrake#5091 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
firedrakeproject/firedrake#3556 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
firedrakeproject/firedrake#5644 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Function.assign on a subset fails with a Constant, a Real Function or abs in the expressionForse già presa @connorjward l’ha presa 2 giorni fa. Aperta
firedrakeproject/firedrake#5643 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di firedrakeproject/firedrake
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
datamodel-code-generator/datamodel-code-generator#6906 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
UKGovernmentBEIS/optstop#12 ·
-
bug good first issue severity: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
TMHSDigital/Awesome-Ads#37 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
smokin-salmon/smoked-salmon#1095 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Sienna-Platform/SiennaSchemas#130 ·
I maintainer di solito rispondono entro 3 giorni