Revision: 3432
Author:
steven....@gmail.com
Date: Tue Jun 9 16:49:40 2015 UTC
Log: Still playing with setState_UV
https://code.google.com/p/cantera/source/detail?r=3432
Modified:
/cantera/trunk/src/clib/ct.cpp
/cantera/trunk/src/thermo/ThermoPhase.cpp
=======================================
--- /cantera/trunk/src/clib/ct.cpp Tue Jun 9 16:49:34 2015 UTC
+++ /cantera/trunk/src/clib/ct.cpp Tue Jun 9 16:49:40 2015 UTC
@@ -557,8 +557,7 @@
if (vals[1] < 0.0)
throw CanteraError("th_set_UV",
"specific volume cannot be negative");
- //This is patently wrong.
- ThermoCabinet::item(n).setState_HP(vals[0],vals[1]);
+ ThermoCabinet::item(n).setState_UV(vals[0],vals[1]);
if (ThermoCabinet::item(n).temperature() < 0.0)
throw CanteraError("th_set_UV",
"temperature cannot be negative");
=======================================
--- /cantera/trunk/src/thermo/ThermoPhase.cpp Thu Feb 12 04:04:18 2015 UTC
+++ /cantera/trunk/src/thermo/ThermoPhase.cpp Tue Jun 9 16:49:40 2015 UTC
@@ -196,7 +196,7 @@
void ThermoPhase::setState_HP(doublereal Htarget, doublereal p,
doublereal dTtol)
{
- setState_HPorUV(Htarget, p, dTtol, false);
+ setState_HPorUV(Htarget, p, dTtol, true);//false);
}
void ThermoPhase::setState_UV(doublereal u, doublereal v, doublereal dTtol)