[Thermo] Deprecate numerical constants for PDSS types

This commit is contained in:
Ray Speth 2016-07-05 23:01:14 -04:00
parent 39c234ac4b
commit 0de6c01384
9 changed files with 15 additions and 0 deletions

View file

@ -213,6 +213,7 @@ public:
//! Returns the type of the standard state parameterization
/*!
* @return The integer # of the parameterization
* @deprecated To be removed after Cantera 2.3.
*/
PDSS_enumType reportPDSSType() const;
@ -526,6 +527,7 @@ public:
protected:
//! Enumerated type describing the type of the PDSS object
//! @deprecated To be removed after Cantera 2.3.
PDSS_enumType m_pdssType;
//! Current temperature used by the PDSS object

View file

@ -564,6 +564,7 @@ public:
//! species with index number index.
/*!
* @param index Species index
* @deprecated To be removed after Cantera 2.3.
*/
virtual PDSS_enumType reportPDSSType(int index = -1) const;

View file

@ -116,6 +116,7 @@ enum SSVolume_Model_enumType {
};
//! Types of PDSS's
//! @deprecated Unused. To be removed after Cantera 2.3.
enum PDSS_enumType {
cPDSS_UNDEF = 100,
cPDSS_IDEALGAS,

View file

@ -155,6 +155,7 @@ PDSS* PDSS::duplMyselfAsPDSS() const
PDSS_enumType PDSS::reportPDSSType() const
{
warn_deprecated("PDSS::reportPDSSType", "To be removed after Cantera 2.3.");
return m_pdssType;
}

View file

@ -141,6 +141,8 @@ PDSS* VPSSMgr_ConstVol::createInstallPDSS(size_t k, const XML_Node& speciesNode,
PDSS_enumType VPSSMgr_ConstVol::reportPDSSType(int k) const
{
warn_deprecated("VPSSMgr_ConstVol::reportPDSSType",
"To be removed after Cantera 2.3.");
return cPDSS_CONSTVOL;
}

View file

@ -201,6 +201,8 @@ PDSS* VPSSMgr_General::createInstallPDSS(size_t k, const XML_Node& speciesNode,
PDSS_enumType VPSSMgr_General::reportPDSSType(int k) const
{
warn_deprecated("VPSSMgr_General::reportPDSSType",
"To be removed after Cantera 2.3.");
return m_PDSS_ptrs[k]->reportPDSSType();
}

View file

@ -106,6 +106,8 @@ PDSS* VPSSMgr_IdealGas::createInstallPDSS(size_t k, const XML_Node& speciesNode,
PDSS_enumType VPSSMgr_IdealGas::reportPDSSType(int k) const
{
warn_deprecated("VPSSMgr_IdealGas::reportPDSSType",
"To be removed after Cantera 2.3.");
return cPDSS_IDEALGAS;
}

View file

@ -268,6 +268,8 @@ PDSS* VPSSMgr_Water_ConstVol::createInstallPDSS(size_t k,
PDSS_enumType VPSSMgr_Water_ConstVol::reportPDSSType(int k) const
{
warn_deprecated("VPSSMgr_Water_ConstVol::reportPDSSType",
"To be removed after Cantera 2.3.");
return cPDSS_UNDEF;
}

View file

@ -269,6 +269,8 @@ void VPSSMgr_Water_HKFT::initAllPtrs(VPStandardStateTP* vp_ptr,
PDSS_enumType VPSSMgr_Water_HKFT::reportPDSSType(int k) const
{
warn_deprecated("VPSSMgr_Water_HKFT::reportPDSSType",
"To be removed after Cantera 2.3.");
return cPDSS_UNDEF;
}