Interpolation to and from sub-meshes, entity map

Dear all,
I am working with a submesh following this example. I believe something has changed, but I cannot identify the issue. I am using dolfinx version 0.10.0.post2, and I encounter the following error:

TypeError: ‘EntityMap’ object is not iterable.

Does anyone have a minimal working example?

Thank you for your time!

I didn’t see the example you cited but the following should be a more up to date version:

2 Likes

Thanks for your comment sbhasan. I think I need to update all my code and start over.