Deprecate geometry expressions defined on cells
Issue #282
resolved
Geometric expressions on the form
x = triangle.x
n = triangle.n
have been deprecated in ufl dev for a while. Now these:
x = SpatialCoordinate(triangle)
n = FacetNormal(triangle)
will be deprecated from dolfin as well, with this being the future proof syntax:
x = SpatialCoordinate(mesh)
n = FacetNormal(mesh)
This is just FYI. The fix is already in dolfin next and the buildbot is green there.
I want to remove the old syntax after the 1.4 release because it causes so much trouble with the new ufl developments on domain related features (preparations for multimesh, non-affine, functions on submeshes, functions on the boundary). That will break some book example snippets but only in ways that are simple to fix. Is that ok?
Comments (3)
-
reporter -
reporter - changed status to resolved
Fixed in 0e6614734b
-
- removed milestone
Removing milestone: 1.4 (automated comment)
- Log in to comment
Marking this as resolved since it's merged into master. The question still stands but is not relevant until after the 1.4 release.