← Back to team overview

dolfin team mailing list archive

[Bug 769324] Re: Overloading eval_cell fails in demo4.py

 

Ken!

Good that you found out of it!

The demos that are portrayed on the web works with the development
version of DOLFIN. There has been some changes regarding how information
about the cell is passed to expressions, which reflects the error you
got.

I think we have had a FEniCS release after the on that was shipped with
Ubuntu 10.10. You might want to consider add the repositories for the
fenics ppa and upgrade FEniCS or installed the development version using
bzr.

Johan

** Changed in: dolfin
       Status: New => Invalid

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/769324

Title:
  Overloading eval_cell fails in demo4.py

Status in DOLFIN:
  Invalid

Bug description:
  When running demo4.py (which demonstrates the mixed formulation) I get
  the following traceback:

  Traceback (most recent call last):
    File "demo4.py", line 50, in <module>
      class BoundarySource(Expression):
    File "/usr/lib/python2.6/dist-packages/dolfin/function/expression.py", line 221, in __new__
      raise TypeError, "expected an overload 'eval' or 'eval_data' method"
  TypeError: expected an overload 'eval' or 'eval_data' method

  This is installed on Ubuntu 10.10. If you need any more information,
  please let me know.

  I learned about FEniCS recently at a conference and I am interested in
  using it to solve a nonlinear problem which is best solved in the
  mixed formulation, so this example is of particular importance to me.



References