Generated code for 'evaluate_dof(s)' was always broken. The issue is described in https://bitbucket.org/fenics-project/dolfin/issues/489. The feature will be working properly once https://bitbucket.org/fenics-project/ffc/issues/69 is solved. The work has already been started and it will not definitely be available in FEniCS 1.6.0.
A workaround (which does not compute a rubbish) is https://bitbucket.org/fenics-project/dolfin/commits/231662e Jan On Fri, 10 Jul 2015 13:58:44 -0400 Cian Wilson <cwil...@ldeo.columbia.edu> wrote: > Hello, > > When I run: > ``` > from dolfin import * > mesh = UnitSquareMesh(1,1) > P2 = VectorFunctionSpace(mesh, "Lagrange", 2) > B = VectorFunctionSpace(mesh, "Bubble", 3) > Q = P2 + B > F = Function(Q) > E = Expression(("x[0]+1.0", "x[1]+1.0")) > F.interpolate(E) > ``` > > using DOLFIN 1.5.0, it runs with no problem and: > ``` > print F.vector().array() > ``` > > seems to return reasonable looking results. > > However, with the latest master I get: > > " > ----> 1 F.interpolate(E) > > RuntimeError: evaluate_dof(s) for enriched element not implemented. > " > > Is there a way around this? I was using this to set initial > conditions. Was it always broken in some way and I just didn't > notice? > > Many thanks, > Cian > > _______________________________________________ > fenics mailing list > fenics@fenicsproject.org > http://fenicsproject.org/mailman/listinfo/fenics _______________________________________________ fenics mailing list fenics@fenicsproject.org http://fenicsproject.org/mailman/listinfo/fenics