Writes dimer (or singlet) density to file dden.txt.
This works, but I should consider scaling by an extra factor of 1/L since I think the value of the average fluctuates with that.