properly catching the LinAlgError. also, prepping to change the run_baker method (more generic)

This commit is contained in:
Stephen Mardson McQuay
2010-03-20 11:34:24 -06:00
parent bd8f24d64f
commit 993c901cec
3 changed files with 19 additions and 8 deletions
-3
View File
@@ -30,7 +30,6 @@ phis = get_phis_3D(X, R.points)
print "phi values (should all be positive): ", phis, sum(phis)
if [i for i in phis if i < 0.0]:
print "problems"
sys.exit(1)
r = run_baker_3D(X, R, S)
@@ -40,7 +39,5 @@ print 'final', r['final']
if abs(r['final'] - exact) <= abs(r['qlin'] - exact):
print "win"
sys.exit(0)
else:
print "failure"
sys.exit(2)