← Back to team overview

dolfin team mailing list archive

Problem with numpy array indices

 

I've updated the demo in

  demo/fem/simple/python

to the new interface but it breaks:

Traceback (most recent call last):
  File "demo.py", line 31, in <module>
    [-1.0/6.0, 0.0, 0.0, 1.0/6.0]]), pos, pos)
  File
  "/scratch/fenics/dolfin/dolfin-dev/local/lib/python2.5/site-packages/dolfin/cpp.py", line 1830, in set
    return _cpp.GenericTensor_set(*args)
TypeError: in method 'GenericTensor_set', argument 4 of type
'dolfin::uint const *const *'

Does anyone know how to fix this?

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups