Primarily: fixed the gmsh module to use integer indices

also did some pep8/pyflakes cleanup
This commit is contained in:
Stephen M. McQuay
2011-09-27 15:23:42 -06:00
parent 0ae558f660
commit 1af176a6e0
9 changed files with 1131 additions and 1110 deletions
+5 -6
View File
@@ -142,10 +142,10 @@ def interpolate(X, R, R_q, S=None, S_q=None, order=2):
order - order of interpolation - 1
"""
qlin=None
error_term=None
final=None
abc={}
qlin = None
error_term = None
final = None
abc = {}
# calculate values only for the simplex triangle
phi, qlin = qlinear(X, R, R_q)
@@ -161,10 +161,9 @@ def interpolate(X, R, R_q, S=None, S_q=None, order=2):
raise np.linalg.LinAlgError("Pathological Vertex Config")
else:
final = qlin + error_term
elif order not in xrange(2,11):
elif order not in xrange(2, 11):
raise Exception('unsupported order "%d" for baker method' % order)
return Answer(qlin=qlin, error=error_term, final=final, abc=abc)