Skip to content

Commit 54e4b17

Browse files
committed
[Matlab] Corrected error messages generated by setState_SP
1 parent 5c086f7 commit 54e4b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interfaces/matlab/toolbox/@ThermoPhase/setState_SP.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
% entropy (J/kg/K) and pressure (Pa).
88
%
99
if sp(1) <= 0.0
10-
error('the pressure must be positive');
10+
error('the specific entropy must be positive');
1111
end
1212
if sp(2) <= 0.0
13-
error('the specific entropy must be positive');
13+
error('the pressure must be positive');
1414
end
1515
thermo_set(a.tp_id,23,sp);

0 commit comments

Comments
 (0)