I added a CMake option a while back to turn deprecation warnings into errors (intended for developer use). This option is turned on in cmake.local. It stops deprecated interfaces being used and it fishes deprecated code out of demos, etc. Not sure what the best work-around is. Before the option was added, there was a lot of deprecated code in demos.
Garth On 3 Jun 2014, at 22:17, Anders Logg <[email protected]> wrote: > I'm getting lots of these: > > Traceback (most recent call last): > File "./Assembler.py", line 594, in > test_ways_to_pass_mesh_to_assembler > x2 = SpatialCoordinate(mesh.ufl_cell()) > File > > "/home/logg/scratch/src/dolfin/local.next/lib/python2.7/site-packages/dolfin/functions/specialfunctions.py", > line 151, in SpatialCoordinate > return ufl.SpatialCoordinate(_mesh2domain(mesh)) > File > > "/home/logg/scratch/src/dolfin/local.next/lib/python2.7/site-packages/dolfin/functions/specialfunctions.py", > line 40, in _mesh2domain > "Pass mesh instead, for example use FacetNormal(mesh) instead of > FacetNormal(triangle) or triangle.n") > File > > "/home/logg/scratch/src/dolfin/local.next/lib/python2.7/site-packages/dolfin/cpp/common.py", > line 2374, in deprecation > return _common.deprecation(*args) > RuntimeError: *** Error: *** > ------------------------------------------------------------------------- > *** Warning: Constructing geometry from a Cell has been deprecated in > DOLFIN version 1.4. > *** It will be removed from version 1.5. > *** Pass mesh instead, for example use FacetNormal(mesh) instead of > FacetNormal(triangle) or triangle.n > *** > ------------------------------------------------------------------------- > > Deprecation warnings seem to turn into errors when running `make > runtests`. > > -- > Anders > _______________________________________________ > fenics mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics _______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
