fixed a little bug and getting good results again. still will have problems if you try to simply get a linear interpolation

This commit is contained in:
Stephen Mardson McQuay
2010-01-31 21:10:37 -07:00
parent 2113abb8dc
commit 0f4daa9a9c
3 changed files with 21 additions and 6 deletions
+6 -1
View File
@@ -100,9 +100,14 @@ if __name__ == '__main__':
S = [mesh_source.points[i] for i in indicies[3:] ]
Sq = [mesh_source.q[i] for i in indicies[3:] ]
s_mesh = grid.grid(S, Sq)
print len(S)
answer = baker.run_baker(X, r_mesh, s_mesh, options.extra, options.verbose)
answer = baker.run_baker(X, r_mesh, s_mesh, options.verbose)
print "]\n[".join([str(i) for i in [answer, r_mesh, s_mesh]])
print
print
print
exact = exact_func(X[0], X[1])
if np.abs(exact - answer['final']) < np.abs(exact - answer['qlin']):
success += 1