mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[MATLAB] Deprecate IdealGasMix function
The Solution function provides the same utility for creating Solutions. Conversion to YAML format files should be done using the command line tool.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
function s = IdealGasMix(infile, b, c)
|
||||
% IDEALGASMIX Create a mixture of ideal gases.
|
||||
% s = IdealGasMix(infile, b, c)
|
||||
% This function is deprecated and will be removed after Cantera 2.5. Please
|
||||
% use :mat:func:`Solution` as a replacement.
|
||||
% Create a :mat:func:`Solution` instance representing an ideal gas mixture. ::
|
||||
%
|
||||
% gas1 = IdealGasMix('yaml_file'[,'phase_name'[,'transport_model']])
|
||||
@@ -47,6 +49,9 @@ function s = IdealGasMix(infile, b, c)
|
||||
% Instance of class :mat:func:`Solution`
|
||||
%
|
||||
|
||||
warning(['The function IdealGasMix is deprecated and will be removed after ' ...
|
||||
'Cantera 2.5. Please use Solution as a replacement.'])
|
||||
|
||||
dotloc = strfind(infile, '.');
|
||||
if dotloc(end) > 1
|
||||
ext = infile(dotloc(end):end);
|
||||
|
||||
Reference in New Issue
Block a user