changed the 2D gmsh to work with new baker method

This commit is contained in:
Stephen Mardson McQuay
2011-02-20 19:23:01 -07:00
parent f03da63c4d
commit da95afb14d
3 changed files with 14 additions and 12 deletions
+6 -3
View File
@@ -39,7 +39,8 @@ class gmsh_grid(grid):
node_count = int(gmsh_file.readline())
self.verts = np.empty((node_count, 3))
# for dim = 2, see note in next for loop
self.verts = np.empty((node_count, 2))
self.q = np.empty(node_count)
for i in xrange(node_count):
@@ -49,8 +50,10 @@ class gmsh_grid(grid):
self.verts[i][0] = float(x)
self.verts[i][1] = float(y)
self.verts[i][2] = float(z)
# self.q[i] = exact_func(self.verts[i])
# for the general baker method to work, it must have 2
# components if it it a 2D mesh, so I removed:
# self.verts[i][2] = float(z)
grid.__init__(self)