Hi,
I'm new in Swing and python bindings, so maybe answer to my question
will be trivial. Could you please tell me, if it is possible to access
into mesh entities from python. For example:
c = Cell(mesh, 111)
print c.numEntities(0)
ent = c.entities()
print ent
gives output:
4
<Swig Object of type 'dolfin::uint *' at 0x3a26fb8>
According to the documentation I expect that entities method "Return
array of indices ". 'dolfin::uint *' is propably pointer to array, but
ent[0] fails with "'int' object is unsubscriptable" error.
So how can I get elements for this array?
regrd.
BArtek
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev