[Matlab] Corrected error messages generated by setState_SP

This commit is contained in:
Ray Speth 2012-11-30 22:50:47 +00:00
parent 5c086f77fe
commit 54e4b17aa5

View file

@ -7,9 +7,9 @@ function a = setState_SP(a,sp)
% entropy (J/kg/K) and pressure (Pa).
%
if sp(1) <= 0.0
error('the pressure must be positive');
end
if sp(2) <= 0.0
error('the specific entropy must be positive');
end
if sp(2) <= 0.0
error('the pressure must be positive');
end
thermo_set(a.tp_id,23,sp);