[Matlab] Corrected error messages generated by setState_SP
This commit is contained in:
parent
5c086f77fe
commit
54e4b17aa5
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue