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.
10 lines
192 B
Matlab
10 lines
192 B
Matlab
function a = setDensity(a,rho)
|
|
% SETDENSITY - Set the density [kg/m^3].
|
|
%
|
|
% setDensity(phase, 0.01);
|
|
%
|
|
if rho <= 0.0
|
|
error('the density must be positive');
|
|
end
|
|
|
|
phase_set(a.tp_id,2,rho);
|