csr_matrix with mtl4
I'd like to write a matrix in a compressed row storage format
using the csr_matrix - function from scipy. According the
FEniCS Documentation I use the MTL4 as linear algebra backend.
I updated FEniCS to Version 1:1.0-beta2-
and now, importing MTL4 I get the following error:
parameters[
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
par.
RuntimeError: *** Error: Illegal value for parameter. Allowed values are: [Epetra, PETSc, STL, uBLAS]
Isn't it possible to use MTL4 anymore? Or is something wrong with my installation?
Can I use the csr_matrix-function with another linear algebra backend?
I know that uBLAS also works, but I think only for 1d arrays. I'd like to do:
mesh = Rectangle(0,0, 10,10,10,10)
mesh.order()
U = FunctionSpace(mesh, "Raviart-Thomas", 1)
W = FunctionSpace(mesh, "DG", 0)
psi_c = TestFunction(U)
phi = TrialFunction(W)
int_psi = phi*div(psi_c)*dx
C_mat = assemble(int_psi)
rows, columns, values = C_mat.data()
C_arr = sp.sparse.
Thanks for any help!!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply: