[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.
This commit is contained in:
Bryan W. Weber 2015-10-23 14:58:04 -04:00
parent 87aaa6ad1e
commit 5aabfe9704
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)