← Back to team overview

dolfin team mailing list archive

UFL and project.py

 

I'm trying to perform a projection of a function from PyDOLFIN for plotting purposes and I'm letting DOLFIN figure out the function space, but I get the below error. Has 'extract_functions' been re-named in the recent UFL changes?

Garth

Traceback (most recent call last):
  File "solver.py", line 65, in <module>
    eps_file << project(u[0].dx(0) + u[1].dx(1) + u[2].dx(2))
File "/home/garth/code/fenics/dolfin/dolfin-all/local/lib/python2.6/site-packages/dolfin/fem/project.py", line 42, in project
    V = _extract_function_space(v)
File "/home/garth/code/fenics/dolfin/dolfin-all/local/lib/python2.6/site-packages/dolfin/fem/project.py", line 69, in _extract_function_space
    functions = ufl.algorithms.extract_functions(expression)
AttributeError: 'module' object has no attribute 'extract_functions'





Follow ups