Cannot create 1d mesh

The whole point is that DOLFIN doesn’t care about if the facets are of dimension 1 or 2.
ds is an integration measure for entities of one degree lower dimension than the cells of the mesh (i.e. 1 for 2D meshes, 2 for 3D meshes).

As I have now stated a few times, please be incredibly careful when mixing integration measures and mesh functions.

  1. You have a mesh of lines (i.e. topological dimension 0).
  2. To read in data regarding facets (the information that should be in ds integrals, you need to read in data about the vertices, as done in: