Ilmar Wilbers wrote:
> Hi,
> 
> When I try to run the demo in /demo/la/eigensolver/python, I get the 
> following error:
> 
> Initializing PETSc (ignoring command-line arguments).
> Traceback (most recent call last):
>    File "demo.py", line 18, in <module>
>      A.set(A_array, position, position)
>    File "/usr/local/lib/python2.5/site-packages/dolfin/dolfin.py", line 
> 1823, in set
>      return _dolfin.PETScMatrix_set(*args)
> TypeError: Numpy array of 32 bit unsigned integers (uint32) expected. 
> Make sure that the numpy array use dtype='I'.
> 
> Could this also be related to the clean up from this weekend?
> 
> ilmar
> _______________________________________________
> DOLFIN-dev mailing list
> [email protected]
> http://www.fenics.org/mailman/listinfo/dolfin-dev

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

ilmar
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to