Mark _allowGasPhase override as not intended for general use

This commit is contained in:
Ingmar Schoegl
2021-01-29 10:24:09 -06:00
committed by Ray Speth
parent f092244bec
commit 85b8f23c35
2 changed files with 2 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ public:
* member function is to check the thermodynamic consistency of the
* underlying WaterProps class with ideal-gas thermo functions.
*/
void allowGasPhase(bool flag) { m_allowGasPhase = flag; }
void _allowGasPhase(bool flag) { m_allowGasPhase = flag; }
protected:
/**

View File

@@ -22,7 +22,7 @@ int main()
double pres;
try {
ThermoPhase* w = newPhase("liquidvapor.yaml", "liquid-water-IAPWS95");
(dynamic_cast<WaterSSTP*>(w))->allowGasPhase(true);
(dynamic_cast<WaterSSTP*>(w))->_allowGasPhase(true);
/*
* Print out the triple point conditions