Ola Skavhaug wrote: > Ilmar Wilbers skrev den 31/03-2008 følgende: >> 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 > > In that case, you need to rebuild your swig-wrappers. > > Ola > >> ilmar >> _______________________________________________ >> DOLFIN-dev mailing list >> [email protected] >> http://www.fenics.org/mailman/listinfo/dolfin-dev
Confirmed working, then. ilmar _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
