From 68a02267c9c8a75f9767ec478e15c13082193026 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 21 Feb 2020 21:46:52 -0500 Subject: [PATCH] [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. --- interfaces/matlab/toolbox/IdealGasMix.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interfaces/matlab/toolbox/IdealGasMix.m b/interfaces/matlab/toolbox/IdealGasMix.m index 1eeb1569f..92cba2fd3 100644 --- a/interfaces/matlab/toolbox/IdealGasMix.m +++ b/interfaces/matlab/toolbox/IdealGasMix.m @@ -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);