Open pefarrell opened 4 years ago
Fixed in pull request #1596 .
I think this is basically a cache invalidation problem. Periodic...Mesh
gets further through mesh construction than Unit...Mesh
and so the facet labels are baked in (your mesh marking happens too late).
We could fix this by making the subset and boundary node creation that goes along with mesh labels "dynamic" and not cached.
I guess this is still a problem because #1596 was not merged.
I have a code that uses interior facet integrals on a
PeriodicUnitSquareMesh
. It works when I use... * dS
. I then colour all interior facets with colour 1. The code does not work if I use... * dS(1)
instead. On investigation, this issue appears to be specific to periodic domains; on aUnitSquareMesh
the issue does not arise.Minimal reproducing code:
which prints
i.e. the use_markers True vs False makes no difference on
UnitSquareMesh
, but does onPeriodicUnitSquareMesh
.