Python docstring of Expression wrong

Bug #876362 reported by B. von Loesch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Critical
Johan Hake

Bug Description

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, const Array<double>& x) const

and every occurrence of "data.x" to "x".

B. von Loesch (vloesch)
description: updated
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

Johan Hake (johan-hake)
Changed in dolfin:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Johan Hake (johan-hake)
milestone: none → 1.0-beta2
status: Confirmed → In Progress
Johan Hake (johan-hake)
Changed in dolfin:
status: In Progress → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.