These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
11 lines
No EOL
266 B
Matlab
11 lines
No EOL
266 B
Matlab
function a = setPressure(a,p)
|
|
% SETPRESSURE Set the pressure [Pa].
|
|
%
|
|
% The pressure is set by changing the density holding the
|
|
% temperature and chemical composition fixed.
|
|
%
|
|
if p <= 0.0
|
|
error('the pressure must be positive')
|
|
end
|
|
|
|
thermo_set(a.tp_id,1,p); |