bug fix for windows compatability on solver.

This commit is contained in:
rowanc1
2014-03-02 09:51:04 -08:00
parent eb91dd0026
commit 27ae74d34a
+1 -1
View File
@@ -61,7 +61,7 @@ class Solver(object):
warnings.warn("You should provide a preconditioner, M.", UserWarning)
return
M = options['M']
if type(M) is sp.linalg.LinearOperator:
if isinstance(M, sp.linalg.LinearOperator):
return
PreconditionerList = ['J','GS']
if type(M) is str: