← Back to team overview

dolfin team mailing list archive

Re: No data.x in overloaded Expression.eval_data

 

On Wednesday 16 December 2009 09:28:21 David Beacham wrote:
> Hi,
> 
> I'm not sure if it's my relative inexperience with python, but I can't
> find the coordinates x in data, when overloading eval_data in
> Expression. I'm guessing from doxygen/pydoc that they should be available?

Have you tried:

  x = data.x()

We needed to make the x attribute a method returning the x array in Python.

Johan

> David
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp
> 



Follow ups

References