Hi,
I am encountering a numpy conversion error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/ubc/cs/research/scl/people/mwathen/Dropbox/PHDResearch/MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/ScottTest/MHDfluid.py in <module>()
362`enter code here`
363 interactive()
--> 364 foo()
/ubc/cs/research/scl/people/mwathen/Dropbox/PHDResearch/MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/ScottTest/MHDfluid.py in foo()
224 else:
225 AA, bb = assemble_system(maxwell+ns+CoupleTerm, (Lmaxwell + Lns) - RHSform, bcs)
--> 226 A,b = CP.Assemble(AA,bb)
227 # if iter == 1:
228 MO.StrTimePrint("MHD total assemble, time: ", time.time()-AssembleTime)
/ubc/cs/research/scl/people/mwathen/Dropbox/PHDResearch/MHD/FEniCS/Classes/CheckPetsc4py.pyc in Assemble(AA, bb)
25 if AA.size(1) == AA.size(0):
26 # As = AA.sparray()
---> 27 As = AA.sparray()
28 As.eliminate_zeros()
29 row, col, value = As.indptr, As.indices, As.data
/ubc/cs/research/scl/people/mwathen/.hastdist/bld/profile/3kneeoad7jpp/lib/python2.7/site-packages/dolfin/cpp/la.py in sparray(self)
648 "Return a scipy.sparse representation of Matrix"
649 from scipy.sparse import csr_matrix
--> 650 data = self.data(deepcopy=True)
651 C = csr_matrix((data[2], data[1], data[0]))
652 return C
/ubc/cs/research/scl/people/mwathen/.hastdist/bld/profile/3kneeoad7jpp/lib/python2.7/site-packages/dolfin/cpp/la.py in data(self, deepcopy)
665 destroyed together with the destruction of the Matrix
666 """
--> 667 rows, cols, values = self._data()
668 if deepcopy:
669 rows, cols, values = rows.astype(int), cols.astype(int), values.copy()
TypeError: NumPy conversion error
how do I get around this?