position = numpy.array([0, 1], 'uint32')

Happens both on OSX and Linux.

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
>> [email protected]
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to