Cannot create 1d mesh

The point is:

  1. You haven’t stored your facet markers to file. See for instance: How to read a physical object from a xdmf file - #7 by dokken where I already showed you this.

The notation doesn’t change in DOLFIN for a 1D mesh. Just use the same notation (or alternatively what you have written as an option).