From fb9a4b1d6101fa6e5069d44b9383cae2454148af Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 3 Nov 2016 23:17:34 -0400 Subject: [PATCH] Deprecate RootFind --- include/cantera/numerics/RootFind.h | 9 ++------- src/numerics/RootFind.cpp | 2 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/cantera/numerics/RootFind.h b/include/cantera/numerics/RootFind.h index 0db3fd2e3..782ade427 100644 --- a/include/cantera/numerics/RootFind.h +++ b/include/cantera/numerics/RootFind.h @@ -43,13 +43,8 @@ namespace Cantera //! Root finder for 1D problems /*! - * @attention This class currently does not have any test cases or examples. Its - * implementation may be incomplete, and future changes to Cantera may - * unexpectedly cause this class to stop working. If you use this class, - * please consider contributing examples or test cases. In the absence of - * new tests or examples, this class may be deprecated and removed in a - * future version of Cantera. See - * https://github.com/Cantera/cantera/issues/267 for additional information. + * @deprecated Unused. To be removed after Cantera 2.3. See + * boost::math::tools::toms748_solve for an alternative. * * The root finder solves a single nonlinear equation described below. * diff --git a/src/numerics/RootFind.cpp b/src/numerics/RootFind.cpp index 8fcf5f291..c8449c339 100644 --- a/src/numerics/RootFind.cpp +++ b/src/numerics/RootFind.cpp @@ -52,6 +52,8 @@ RootFind::RootFind(ResidEval* resid) : x_minTried_(1.0E300), fx_minTried_(0.0) { + warn_deprecated("Unused. To be removed after Cantera 2.3. See " + "boost::math::tools::toms748_solve for an alternative."); } RootFind::RootFind(const RootFind& r) :