[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:
Bryan W. Weber
2020-02-21 21:46:52 -05:00
committed by GitHub
parent 97c96a0ac6
commit 68a02267c9

View File

@@ -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);