minor, updated the driver to handle linear case
This commit is contained in:
parent
0f4daa9a9c
commit
f9973e7580
@ -100,14 +100,13 @@ 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.verbose)
|
||||
|
||||
print "]\n[".join([str(i) for i in [answer, r_mesh, s_mesh]])
|
||||
print
|
||||
print
|
||||
print
|
||||
if answer['a'] == None:
|
||||
errors.append(0)
|
||||
continue
|
||||
|
||||
exact = exact_func(X[0], X[1])
|
||||
if np.abs(exact - answer['final']) < np.abs(exact - answer['qlin']):
|
||||
success += 1
|
||||
|
Loading…
Reference in New Issue
Block a user