Deprecated MeshGeometry::size() used heavily throught the library
Annoying symptom is that test stdout is flooded by
Process 0: *** -------------------------------------------------------------------------
*** Warning: MeshGeometry::size() has been deprecated in DOLFIN version 1.7.0.
*** It will be removed from version 1.8.0.
*** Use MeshGeometry::num_vertices() or MeshGeometry::num_points() instead
*** -------------------------------------------------------------------------
Comments (14)
-
-
When DOLFIN is built in developer mode, it should should throw a runtime error when the deprecation function is called. Why isn't this being picked up by the tests?
-
reporter Seems to me that default is OFF in
CMakeLists.txt
regardless of build typeoption(DOLFIN_DEPRECATION_ERROR "Turn deprecation warnings into errors." OFF)
-
Just checked, and we had
-DDOLFIN_DEPRECATION_ERROR
in the oldcmake.local
file, but towards the end someone switched it off there.Someone should build DOLFIN and run the tests with
-DDOLFIN_DEPRECATION_ERROR=true
to clean up all the calls to deprecated code. -
reporter It's Chris' line ba1390e4, that's why assigned to him.
-
reporter BTW, I like cmake.local - it's obvious what does it do, compared to fenics-magic-install.sh.
-
@blechta - didn't you keep a copy?
-
@blechta Chris and I and stored copies away in a safe place!!
-
reporter I know the place also
git checkout `git rev-list -1 HEAD -- cmake.local`^ -- cmake.local
:) -
@blechta - now you are just showing off your git mastery... you could just add cmake.local back to the repo and see if anyone notices.
-
@blechta I now know who to ask next time I have a git question . . .
-
reporter I don't know. Garth had a good argument under pull request #214 - cmake.local is non-standard.
-
- changed status to resolved
Fixed in d296848.
-
- removed milestone
Removing milestone: 1.7 (automated comment)
- Log in to comment
One could use the
Event
class for this. It has been around for a long time in DOLFIN but is not in much use. However, need to make sure that printing that message many times does not affect performance.