don't implicitly set q in DD.rect_grid
This commit is contained in:
parent
8a56078f65
commit
fef4f8b71f
@ -17,13 +17,12 @@ class rect_grid(basegrid):
|
||||
|
||||
|
||||
verts = []
|
||||
q = []
|
||||
q = np.zeros( xres * yres )
|
||||
for x in xrange(xres):
|
||||
cur_x = xmin + (x * xdel)
|
||||
for y in xrange(yres):
|
||||
cur_y = ymin + (y * ydel)
|
||||
verts.append([cur_x, cur_y])
|
||||
q.append(exact_func((cur_x, cur_y)))
|
||||
basegrid.__init__(self, verts, q)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user