- changed status to resolved
Function.__call__(Point) does not work
Issue #68
resolved
u = Function(V)
p = Point()
u(p)
raises TypeError: expected scalar arguments for the coordinates
. Problem is in site-packages/dolfin/functions/function.py:575
where numpy.fromiter(x, 'd')
is applied to generator x = (x[0][i] for i in xrange(dim))
defined on line 569. I suggest fix by changing to say x = [x[0][i] for i in range(dim)]
or whatever else is efficient.
Comments (1)
-
- Log in to comment
Fixed by:
https://bitbucket.org/fenics-project/dolfin/commits/65d0caea1a1028e5b3966caa6f7d256ab8d08568