Custom measure to refer to a part of the boundary

It’s difficult to debug code when you don’t provide a MWE. But perhaps this is the issue: you’ve created a measure ds = ... but you haven’t used it, you’re using ufl.ds(2) where ufl.ds has no associated subdomain data.

1 Like