From 5aabfe9704d4a89fac449cba85b114de420421f3 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 23 Oct 2015 14:58:04 -0400 Subject: [PATCH] [Matlab] Fix setState_sat*.m functions Fix the setState_satLiquid and setState_satVapor functions so that they call the main set method instead of the underlying C++ layer. Resolves #299. --- interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m | 2 +- interfaces/matlab/toolbox/@ThermoPhase/setState_satVapor.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m b/interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m index 5afb29c91..5c617f137 100644 --- a/interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m +++ b/interfaces/matlab/toolbox/@ThermoPhase/setState_satLiquid.m @@ -6,4 +6,4 @@ function setState_satLiquid(tp) % class derived from ThermoPhase) % -thermo_set(tp.tp_id, 2, 0); +set(tp, 'T', temperature(tp), 'Liquid', 1.0) diff --git a/interfaces/matlab/toolbox/@ThermoPhase/setState_satVapor.m b/interfaces/matlab/toolbox/@ThermoPhase/setState_satVapor.m index 3e0bf9ad2..6805e1e17 100644 --- a/interfaces/matlab/toolbox/@ThermoPhase/setState_satVapor.m +++ b/interfaces/matlab/toolbox/@ThermoPhase/setState_satVapor.m @@ -6,4 +6,4 @@ function setState_satVapor(tp) % class derived from ThermoPhase) % -thermo_set(tp.tp_id, 3, 0); +set(tp, 'T', temperature(tp), 'Vapor', 1.0)