hplgit / scitools

Additional scientific computing functionality in Python - extensions to NumPy/SciPy++
http://hplgit.github.io/scitools/doc/web/index.html
Other
64 stars 30 forks source link

BoxField.dolfin_function2BoxField broken with dolfin 1.6.0 #38

Open Harcion opened 9 years ago

Harcion commented 9 years ago

What steps will reproduce the problem? Minimal non-working example: [code] import dolfin import scitools.BoxField

mesh = dolfin.UnitSquareMesh(10,10) V = dolfin.FunctionSpace(mesh, 'Lagrange', 1) u = dolfin.Function(V)

scitools.BoxField.dolfin_function2BoxField(u,mesh) [\code]

What is the expected output? What do you see instead? Expected: A BoxField. Instead: AttributeError: 'GenericDofMap' object has no attribute 'vertex_to_dof_map'

What version of the product are you using? On what operating system? scitools 0.9.0 downloaded from git, dolfin 1.6.0 from the FEniCS PPA (on Lubuntu)

Probable cause: The DofMap member methods vertex_to_dof_map and dof_to_vertex_map are deprecated since 1.3 and have now been removed. Instead the free functions with the same names should be used. (I'm new to dolfin as well as to scitools so I hope this is correct, I was simply trying to run one of the more advanced plotting examples from the FEniCS tutorial.)