dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07125
Re: Item assignment to matrices and vectors
On Thu, Apr 03, 2008 at 07:28:51PM +0200, Ilmar Wilbers wrote:
> > 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
ok, I'll try. I did a clean as late as this afternoon.
--
Anders
>
>
> 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?
> >
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Follow ups
References