[Thermo] Deprecate non-functional 'testProb' constructors

These "test problem" constructors don't actually do anything, and most of them
can't be used because the corresponding input files don't exist.
This commit is contained in:
Ray Speth 2015-04-09 19:04:08 -04:00
parent 23ad04f882
commit c540e67d50
10 changed files with 17 additions and 1 deletions

View file

@ -300,6 +300,7 @@ public:
* @param testProb Hard-coded value. Only the value of 1 is used. It's
* for a LiKCl system test to predict the eutectic and
* liquidus correctly.
* @deprecated To be removed after Cantera 2.2.
*/
MargulesVPSSTP(int testProb);

View file

@ -295,6 +295,7 @@ public:
* @param testProb Hard-coded value. Only the value of 1 is used. It's
* for a LiKCl system -> test to predict the eutectic and
* liquidus correctly.
* @deprecated To be removed after Cantera 2.2.
*/
MixedSolventElectrolyte(int testProb);

View file

@ -368,6 +368,7 @@ public:
* @param testProb Hard-coded value. Only the value of 1 is used. It's
* for a LiKCl system -> test to predict the eutectic and
* liquidus correctly.
* @deprecated To be removed after Cantera 2.2.
*/
PhaseCombo_Interaction(int testProb);

View file

@ -291,6 +291,7 @@ public:
* @param testProb Hard-coded value. Only the value of 1 is used. It's
* for a LiKCl system -> test to predict the eutectic and
* liquidus correctly.
* @deprecated To be removed after Cantera 2.2.
*/
RedlichKisterVPSSTP(int testProb);

View file

@ -61,6 +61,7 @@ public:
*
* @param testProb Hard -coded test problem to instantiate.
* Current valid values are 1.
* @deprecated To be removed after Cantera 2.2.
*/
RedlichKwongMFTP(int testProb);

View file

@ -88,6 +88,8 @@ MargulesVPSSTP::MargulesVPSSTP(int testProb) :
formMargules_(0),
formTempModel_(0)
{
warn_deprecated("MargulesVPSSTP::MargulesVPSSTP(int testProb)",
"To be removed after Cantera 2.2");
initThermoFile("LiKCl_liquid.xml", "");

View file

@ -92,6 +92,9 @@ MixedSolventElectrolyte::MixedSolventElectrolyte(int testProb) :
formMargules_(0),
formTempModel_(0)
{
warn_deprecated("MixedSolventElectrolyte::MixedSolventElectrolyte(int testProb)",
"To be removed after Cantera 2.2");
initThermoFile("LiKCl_liquid.xml", "");

View file

@ -87,7 +87,8 @@ PhaseCombo_Interaction::PhaseCombo_Interaction(int testProb) :
formMargules_(0),
formTempModel_(0)
{
warn_deprecated("PhaseCombo_Interaction::PhaseCombo_Interaction(int testProb)",
"To be removed after Cantera 2.2");
initThermoFile("PhaseCombo_Interaction.xml", "");

View file

@ -51,6 +51,9 @@ RedlichKisterVPSSTP::RedlichKisterVPSSTP(int testProb) :
formRedlichKister_(0),
formTempModel_(0)
{
warn_deprecated("RedlichKisterVPSSTP::RedlichKisterVPSSTP(int testProb)",
"To be removed after Cantera 2.2");
initThermoFile("LiKCl_liquid.xml", "");
numBinaryInteractions_ = 1;

View file

@ -95,6 +95,8 @@ RedlichKwongMFTP::RedlichKwongMFTP(int testProb) :
dpdV_(0.0),
dpdT_(0.0)
{
warn_deprecated("RedlichKwongMFTP::RedlichKwongMFTP(int testProb)",
"To be removed after Cantera 2.2");
std::string infile = "co2_redlichkwong.xml";
std::string id_;
if (testProb == 1) {