dokken
2
Here you are hitting an issue that relates to: Discontinuity at interface using mixed domains - #2 by dokken
which has several workarounds required for coupling across the submeshes.
The support for this has been greatly improved in DOLFINx main branch, see for instance:
where this coupling over interior submesh boundaries have been simplified greatly (copmared to my aforementioned implementation from 2024).