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

Ignoring deprecation warnings in FEniCS

0 votes

Hello,

In dolfin-adjoint, when running the reduced_functional.py test with the last development version of dolfin, I get this deprecation warning:

*** -------------------------------------------------------------------------
*** Warning: Function copy constructor has been deprecated in DOLFIN version 1.7.0.
*** It will be removed from version 2.0.0.
*** Use 'Function.copy(deepcopy=True)' for copying.
*** -------------------------------------------------------------------------

Is there any way I could suppress this warning from the terminal output? I haven't found a solution online. Thanks.

asked May 14, 2016 by miguelito FEniCS Novice (760 points)
...