dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07124
Re: Item assignment to matrices and vectors
> No I get this error:
> > Initializing PETSc (ignoring command-line arguments).
> > Traceback (most recent call last):
> > File "demo.py", line 12, in <module>
> > A[0, 0] = 4.0
> > TypeError: 'PETScMatrix' object does not support item assignment
In that case, you need to rebuild your swig-wrappers.
Ola
-------
The above is what Ola answered be. Doing a clean worked.
ilmar
Anders Logg wrote:
When I run the la/eigensolver demo, I get
A[0, 0] = 4.0
TypeError: 'PETScMatrix' object does not support item assignment
Wasn't this fixed? Did it disappear at some point?
Follow ups
References