Skip to content

Commit

Permalink
[Matlab] Corrected error messages generated by setState_SP
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Nov 30, 2012
1 parent 5c086f7 commit 54e4b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/matlab/toolbox/@ThermoPhase/setState_SP.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
% entropy (J/kg/K) and pressure (Pa).
%
if sp(1) <= 0.0
error('the pressure must be positive');
error('the specific entropy must be positive');
end
if sp(2) <= 0.0
error('the specific entropy must be positive');
error('the pressure must be positive');
end
thermo_set(a.tp_id,23,sp);

0 comments on commit 54e4b17

Please sign in to comment.