From f9973e7580dce3e43dc9ba93dc35062109a389e6 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Sun, 31 Jan 2010 21:15:47 -0700 Subject: [PATCH] minor, updated the driver to handle linear case --- bin/driver.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/driver.py b/bin/driver.py index d958277..d78fadd 100755 --- a/bin/driver.py +++ b/bin/driver.py @@ -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