probably not critical, but why not:
```
coords = np.arange(0, length + 0.01 * dx)
cells = np.dstack((np.arange(0, len(coords) - 1), np.arange(1, len(coords))).flatten()
```