This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

TypeError: in method 'la_solve', argument 3 of type 'dolfin::GenericVector const &'

0 votes

Hi,

It gave me the error when I tried 'solve(A, U, b)' in which U and b are vectors with the same size (I checked). What does the error exactly mean?

Thank you!

asked Jun 3, 2015 by jhe FEniCS Novice (270 points)

This is the type system complaining, it's not related to the size of your linear algebra objects.

You need to provide more detail: what is the type of the objects A, U, b that you send to solve?

Tip: print type(A)

I'm having the same problem. My types are...

A: class 'dolfin.cpp.la.Vector'
U: class 'dolfin.cpp.la.GenericVector'
b: class 'dolfin.cpp.la.GenericVector'

Did OP resolve the issue? how?

You want to solve a linear system A U = b, where A is a matrix representing the linear system and U and b are vectors. Looking at your types, your A is a vector.

1 Answer

0 votes

I have same problem
types are


Can I convert list to vector?

answered Feb 13, 2016 by abdul FEniCS Novice (250 points)
...