[thermo] Implement allowGasPhase override for WaterSSTP

This commit is contained in:
Ingmar Schoegl
2021-01-29 13:39:28 -05:00
committed by Ray Speth
parent 7783e31447
commit f3e2a940fb
3 changed files with 7 additions and 2 deletions
@@ -1,4 +1,5 @@
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/thermo/WaterSSTP.h"
#include <iostream>
using namespace std;
@@ -21,6 +22,7 @@ int main()
double pres;
try {
ThermoPhase* w = newPhase("liquid-water.xml");
(dynamic_cast<WaterSSTP*>(w))->allowGasPhase(true);
/*
* Print out the triple point conditions