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

tabulate_all_coordiantes is deprecated?

+2 votes

The following used to work for me:

mesh_obj = UnitSquareMesh( 5, 5 )
V = FunctionSpace( mesh_obj, "CG", 1 )
coo = V.dofmap().tabulate_all_coordinates(mesh_obj)

but now it does not and I get the following error message:

AttributeError: 'GenericDofMap' object has no attribute 'tabulate_all_coordiantes'

My institution recently upgraded to a new FEniCS (2016.1). What should I use instead of tabulate_all_coordiantes?

asked Jun 29, 2016 by Yair Daon FEniCS User (1,350 points)

1 Answer

+3 votes
 
Best answer

Hi,
in the new version of fenics the functionality given by tabulate_all_coordinates has been moved from the GenericDofmap class to FunctionSpace with the name tabulate_dof_coordinates (see here). In consecuence, the correct way of tabulate the coordinates of all dofs in a FunctionSpace named V is

coordinates = V.tabulate_dof_coordinates()
answered Jun 30, 2016 by hernan_mella FEniCS Expert (19,460 points)
selected Jun 30, 2016 by Yair Daon
...