cannot import name 'create_unit_square' from 'dolfinx.mesh'
Which version of dolfinx do you use? I’m using 0.3.0 from the ubuntu 20.04 repository (the same happens within a docker container using 0.3.0).
By the way, the deepcopy of the mesh seems promising for problems where I take results of a solution on static mesh_I as input for mesh_II (different physics/equation), which is slightly deformed. For a parallel run, the sizes of the (sub-)vectors are generally not the same if I define the same mesh twice.
Sorry for the confusion. I didn’t update the container. Now the output is
36f8a4f4ba59ce682698e6e158a0c7abaff6fded
But back to the main topic. Your example works well, but because of some API changes, I would like to do this under 0.3.0. You mean, it’s a bit tricky. Can you please give a hint?