uncommented code for x-coords in Gridgen.generate_grid