Deprecated functions or something not covered by pybind11?

7 months ago by
Dear community,

I just installed FEniCS 2018.1.0.dev0 on Arch Linux and I am using Python 3.6.4.

Apparently, several functions seems to be gone in the new version:
  • nabla_grad()
  • Vertex::x()
  • FiniteElement::evaluate_basis_all()
  • Function::restrict()
I suppose some of these may be obsolete, but are really all of them? Or is something missing in Python only, perhaps due to some pybind11 issue? For instance, I can find evaluate_basis_all() in the FEniCS documentation, and in the source code on Bitbucket (I checked the master, next and revision branches), but I am unable to access it in IPython. When I type the following:

import dolfin as df

mesh = df.UnitSquareMesh(8, 8)
V = df.FunctionSpace(mesh, 'CG', 1)
element = V.dolfin_element()​
element.evaluate_ # And then I hit <Tab> to auto-complete

I only get evaluate_basis(), evaluate_basis_derivatives() and evaluate_dofs() as auto-complete alternatives. Not evaluate_basis_all().

Thank you!
Community: FEniCS Project

3 Answers

7 months ago by
You are right, the pybind11 Python interface is missing many things which previously existed. Some of this may be due to oversight - if there is particular functionality that you need, you can register an issue on and request that it comes back. The new interface is still in development, and will not be released for a little while.
Thanks for your quick answer! I will do that.
written 7 months ago by Sigvald Marholm  
7 months ago by
import ufl

import dolfin
mesh = dolfin.UnitSquareMesh.create(3, 3, dolfin.CellType.Type.triangle)
dolfin.Vertex(mesh, 0).point()[:]
5 months ago by
Sa Wu  

Also missing, and will request in bitbucket

Please login to add an answer/comment or follow this question.

Similar posts:
Search »