dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06943
Re: la/eigensolver/python demo
Ilmar Wilbers skrev den 31/03-2008 følgende:
> position = numpy.array([0, 1], 'uint32')
>
> Happens both on OSX and Linux.
Funny; it complaines about the type of position, wanting a unsigned 32bit
integer, which is exactly what you give it...
Ola
> ilmar
>
> Ola Skavhaug wrote:
> > Ilmar Wilbers skrev den 31/03-2008 følgende:
> >> 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?
> >
> > How is position defined? Here, it is:
> > position = numpy.array([0, 1], 'uint32')
> >
> >
> >> ilmar
> >> _______________________________________________
> >> DOLFIN-dev mailing list
> >> DOLFIN-dev@xxxxxxxxxx
> >> http://www.fenics.org/mailman/listinfo/dolfin-dev
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Follow ups
References