From 0ad8d45baf768e01b005fe68b12d2700155a68f6 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 20 Feb 2015 23:43:29 +0000 Subject: [PATCH] [Thermo] Deprecate classes PseudoBinaryVPSSTP and electrodeElectron --- include/cantera/thermo/PseudoBinaryVPSSTP.h | 2 ++ include/cantera/thermo/StoichSubstanceSSTP.h | 3 +++ src/thermo/PseudoBinaryVPSSTP.cpp | 2 ++ src/thermo/StoichSubstanceSSTP.cpp | 2 ++ 4 files changed, 9 insertions(+) diff --git a/include/cantera/thermo/PseudoBinaryVPSSTP.h b/include/cantera/thermo/PseudoBinaryVPSSTP.h index 37afe5bc0..ebafbc384 100644 --- a/include/cantera/thermo/PseudoBinaryVPSSTP.h +++ b/include/cantera/thermo/PseudoBinaryVPSSTP.h @@ -61,6 +61,8 @@ namespace Cantera * The way that it collects the cation and anion based mole numbers * is via holding two extra ThermoPhase objects. These * can include standard states for salts. + * + * @deprecated Incomplete and untested. To be removed after Cantera 2.2. */ class PseudoBinaryVPSSTP : public GibbsExcessVPSSTP { diff --git a/include/cantera/thermo/StoichSubstanceSSTP.h b/include/cantera/thermo/StoichSubstanceSSTP.h index 97243b5b5..0b5e9e88f 100644 --- a/include/cantera/thermo/StoichSubstanceSSTP.h +++ b/include/cantera/thermo/StoichSubstanceSSTP.h @@ -481,6 +481,9 @@ public: /*! * The class is based on the electron have a chemical potential * equal to one-half of the entropy of the H2 gas at 1 bar. + * + * @deprecated Deprecated in favor of class MetalSHEelectrons. To be removed + * after Cantera 2.2. */ class electrodeElectron : public StoichSubstanceSSTP { diff --git a/src/thermo/PseudoBinaryVPSSTP.cpp b/src/thermo/PseudoBinaryVPSSTP.cpp index 48c1cae62..53f6ed233 100644 --- a/src/thermo/PseudoBinaryVPSSTP.cpp +++ b/src/thermo/PseudoBinaryVPSSTP.cpp @@ -36,6 +36,8 @@ PseudoBinaryVPSSTP::PseudoBinaryVPSSTP() : cationPhase_(0), anionPhase_(0) { + warn_deprecated("Class PseudoBinaryVPSSTP", + "To be removed after Cantera 2.2."); } PseudoBinaryVPSSTP::PseudoBinaryVPSSTP(const PseudoBinaryVPSSTP& b) : diff --git a/src/thermo/StoichSubstanceSSTP.cpp b/src/thermo/StoichSubstanceSSTP.cpp index 2080cb29b..9dfd58751 100644 --- a/src/thermo/StoichSubstanceSSTP.cpp +++ b/src/thermo/StoichSubstanceSSTP.cpp @@ -262,6 +262,8 @@ void StoichSubstanceSSTP::setParametersFromXML(const XML_Node& eosdata) electrodeElectron::electrodeElectron(): StoichSubstanceSSTP() { + warn_deprecated("Class electrodeElectron", + "To be removed after Cantera 2.2."); } electrodeElectron::electrodeElectron(const std::string& infile, std::string id_) :