Shifted the grid construction code into the add_grid() method.
Authored by: bugman 2011-06-08
Parent: [r12894]
Child: [r12896]