This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

'GenericDofMap' object has no attribute 'dof_to_vertex_map'

+2 votes

Hi,

I used to be able to have my code work in Fenics 1.3 but after upgrading to Fenics 1.4, it appears that this line of my code:

LargeS = FunctionSpace(mesh, "Lagrange", 1)
large_d_to_v=LargeS.dofmap().dof_to_vertex_map(mesh)

causes the attribute error in python.

Is that function dof_to_vertex_map now obsolete?

Thanks!

asked Jun 16, 2014 by lee FEniCS User (1,170 points)

1 Answer

+6 votes

Hi, it is just a free function now

large_d_to_v = dof_to_vertex_map(LargeS)
answered Jun 16, 2014 by MiroK FEniCS Expert (80,920 points)

Thanks a lot!!!

...