don't implicitly set q in DD.rect_grid

This commit is contained in:
Stephen McQuay 2011-05-19 15:44:21 -06:00
parent 8a56078f65
commit fef4f8b71f

View File

@ -17,13 +17,12 @@ class rect_grid(basegrid):
verts = [] verts = []
q = [] q = np.zeros( xres * yres )
for x in xrange(xres): for x in xrange(xres):
cur_x = xmin + (x * xdel) cur_x = xmin + (x * xdel)
for y in xrange(yres): for y in xrange(yres):
cur_y = ymin + (y * ydel) cur_y = ymin + (y * ydel)
verts.append([cur_x, cur_y]) verts.append([cur_x, cur_y])
q.append(exact_func((cur_x, cur_y)))
basegrid.__init__(self, verts, q) basegrid.__init__(self, verts, q)