Skip to content

Commit

Permalink
Deprecate ResidEval and ResidJacEval
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 15, 2023
1 parent 71e52c2 commit 10a3913
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 2 deletions.
10 changes: 9 additions & 1 deletion include/cantera/numerics/ResidEval.h
Expand Up @@ -11,6 +11,11 @@
#include "cantera/base/utilities.h"
#include "cantera/base/global.h"

#ifndef CT_SKIP_DEPRECATION_WARNINGS
#pragma message("warning: ResidEval.h and class ResidEval are deprecated and will " \
"be removed after Cantera 3.0.")
#endif

namespace Cantera
{

Expand All @@ -27,12 +32,15 @@ const int c_LT_ZERO = -2;
* \vec{F}(t,\vec{y}, \vec{y^\prime})
* \f]
* The DAE solver attempts to find a solution y(t) such that F = 0.
* @deprecated Unused. To be removed after Cantera 3.0.
* @ingroup DAE_Group
*/
class ResidEval
{
public:
ResidEval() {}
ResidEval() {
warn_deprecated("class ResidEval", "To be removed after Cantera 3.0");
}
virtual ~ResidEval() {}

/**
Expand Down
7 changes: 7 additions & 0 deletions include/cantera/numerics/ResidJacEval.h
Expand Up @@ -13,6 +13,11 @@
#include "ResidEval.h"
#include "DenseMatrix.h"

#ifndef CT_SKIP_DEPRECATION_WARNINGS
#pragma message("warning: ResidJacEval.h and class ResidJacEval are deprecated and " \
"will be removed after Cantera 3.0.")
#endif

namespace Cantera
{

Expand Down Expand Up @@ -51,6 +56,8 @@ enum ResidEval_Type_Enum {
* A class for full (non-sparse dense matrices with Fortran-compatible data
* storage. The class adds support for identifying what types of calls are made
* to the residual evaluator by adding the ResidEval_Type_Enum class.
*
* @deprecated Unused. To be removed after Cantera 3.0.
*/
class ResidJacEval : public ResidEval
{
Expand Down
1 change: 0 additions & 1 deletion include/cantera/thermo/MixtureFugacityTP.h
Expand Up @@ -12,7 +12,6 @@
#define CT_MIXTUREFUGACITYTP_H

#include "ThermoPhase.h"
#include "cantera/numerics/ResidEval.h"

namespace Cantera
{
Expand Down
1 change: 1 addition & 0 deletions src/numerics/ResidJacEval.cpp
Expand Up @@ -11,6 +11,7 @@ namespace Cantera
ResidJacEval::ResidJacEval(doublereal atol) :
m_atol(atol)
{
warn_deprecated("class ResidJacEval", "To be removed after Cantera 3.0");
}

int ResidJacEval::nEquations() const
Expand Down
2 changes: 2 additions & 0 deletions src/thermo/MixtureFugacityTP.cpp
Expand Up @@ -10,6 +10,8 @@

#include "cantera/thermo/MixtureFugacityTP.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/utilities.h"
#include "cantera/base/global.h"

using namespace std;

Expand Down
1 change: 1 addition & 0 deletions src/thermo/PengRobinson.cpp
Expand Up @@ -7,6 +7,7 @@
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/thermo/Species.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/utilities.h"

#include <boost/algorithm/string.hpp>
#include <boost/math/tools/roots.hpp>
Expand Down
1 change: 1 addition & 0 deletions src/thermo/RedlichKwongMFTP.cpp
Expand Up @@ -7,6 +7,7 @@
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/thermo/Species.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/utilities.h"

#include <boost/algorithm/string.hpp>
#include <boost/math/tools/roots.hpp>
Expand Down

0 comments on commit 10a3913

Please sign in to comment.