Comment 1 for bug 876362

Revision history for this message
Anders Logg (logg) wrote : Re: [Bug 876362] [NEW] Python docstring of Expression wrong

On Mon, Oct 17, 2011 at 10:39:59AM -0000, B. von Loesch wrote:
> Public bug reported:
>
> In the docstring of the Expression class
> (dolfin/functions/expression.py) the example in part 2 (2. Complex user-
> defined JIT-compiled Expressions) is not working because the syntax is
> not used anymore. The header
>
> void eval(Array<double>& values, const Data& data) const
>
> should be changed to
>
> void eval(Array<double>& values, Array<double>& x) const
>
> and every occurrence of "data.x" to "x".
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New

The documentation for eval_cell is also wrong. The x argument is
missing and ufc_cell is undocumented.

--
Anders