[Equil] Deprecate broken version of VCS phase stability check feature

Resolves #331.
This commit is contained in:
Ray Speth 2016-07-22 13:32:53 -04:00
parent bc609ce2da
commit ba3a0ee3e9
4 changed files with 9 additions and 0 deletions

View file

@ -272,6 +272,7 @@ public:
* stdout from the vcs package (Note, you may have to compile with debug * stdout from the vcs package (Note, you may have to compile with debug
* flags to get some printing). * flags to get some printing).
* @param logLevel Determines the amount of printing to the output file. * @param logLevel Determines the amount of printing to the output file.
* @deprecated Broken and unused. To be removed after Cantera 2.3.
*/ */
int determine_PhaseStability(int iph, double& funcStab, int printLvl= 0, int logLevel = -99); int determine_PhaseStability(int iph, double& funcStab, int printLvl= 0, int logLevel = -99);

View file

@ -120,6 +120,7 @@ public:
*/ */
int vcs_solve_TP(int print_lvl, int printDetails, int maxit); int vcs_solve_TP(int print_lvl, int printDetails, int maxit);
//! @deprecated Broken and unused. To be removed after Cantera 2.3.
int vcs_PS(VCS_PROB* vprob, int iph, int printLvl, double& feStable); int vcs_PS(VCS_PROB* vprob, int iph, int printLvl, double& feStable);
/*! /*!
@ -624,6 +625,7 @@ public:
* returned. * returned.
* - -1 = Maximum number of iterations is exceeded. Convergence was not * - -1 = Maximum number of iterations is exceeded. Convergence was not
* found. * found.
* @deprecated Broken and unused. To be removed after Cantera 2.3.
*/ */
int vcs_solve_phaseStability(const int iphase, int ifunc, double& funcval, int print_lvl); int vcs_solve_phaseStability(const int iphase, int ifunc, double& funcval, int print_lvl);

View file

@ -1131,6 +1131,8 @@ size_t vcs_MultiPhaseEquil::component(size_t m) const
int vcs_MultiPhaseEquil::determine_PhaseStability(int iph, double& funcStab, int printLvl, int loglevel) int vcs_MultiPhaseEquil::determine_PhaseStability(int iph, double& funcStab, int printLvl, int loglevel)
{ {
warn_deprecated("vcs_MultiPhaseEquil::determine_PhaseStability",
"Broken and unused. To be removed after Cantera 2.3.");
clockWC tickTock; clockWC tickTock;
m_printLvl = printLvl; m_printLvl = printLvl;
m_vprob.m_printLvl = printLvl; m_vprob.m_printLvl = printLvl;

View file

@ -16,6 +16,8 @@ namespace Cantera
int VCS_SOLVE::vcs_PS(VCS_PROB* vprob, int iphase, int printLvl, double& feStable) int VCS_SOLVE::vcs_PS(VCS_PROB* vprob, int iphase, int printLvl, double& feStable)
{ {
warn_deprecated("VCS_SOLVE::vcs_PS",
"Broken and unused. To be removed after Cantera 2.3.");
// ifunc determines the problem type // ifunc determines the problem type
int ifunc = 0; int ifunc = 0;
@ -106,6 +108,8 @@ int VCS_SOLVE::vcs_solve_phaseStability(const int iph, const int ifunc,
double& funcVal, double& funcVal,
int printLvl) int printLvl)
{ {
warn_deprecated("VCS_SOLVE::vcs_solve_phaseStability",
"Broken and unused. To be removed after Cantera 2.3.");
double test = -1.0E-10; double test = -1.0E-10;
bool usedZeroedSpecies; bool usedZeroedSpecies;