From 0d2b77f3d160a12595790c956831503dcc39fb09 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Sun, 29 Dec 2019 21:26:15 -0500 Subject: [PATCH 1/2] [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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interfaces/matlab/toolbox/IdealGasMix.m b/interfaces/matlab/toolbox/IdealGasMix.m index 1eeb1569f6..111c51fb9a 100644 --- a/interfaces/matlab/toolbox/IdealGasMix.m +++ b/interfaces/matlab/toolbox/IdealGasMix.m @@ -47,6 +47,9 @@ % 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); From e81faa0ab20d88ed13ffbcd2ac76730ce5dd6dc2 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Fri, 21 Feb 2020 19:40:14 -0500 Subject: [PATCH 2/2] [MATLAB] Note IdealGasMix deprecation in docstring --- interfaces/matlab/toolbox/IdealGasMix.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interfaces/matlab/toolbox/IdealGasMix.m b/interfaces/matlab/toolbox/IdealGasMix.m index 111c51fb9a..92cba2fd36 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']])