fixed error in analytical solution. rewrote grid generation to ignore boundary conditions