Deprecation of MatLab importPhase function

Addition of comments in importPhase to warn for function deprecation.
This commit is contained in:
EmilAtz 2016-12-08 14:19:50 -05:00 committed by Ray Speth
parent 5b2406470c
commit 1e08d7499c

View file

@ -1,6 +1,7 @@
function s = importPhase(file, name)
% IMPORTPHASE Import a phase from a CTI file
% s = importPhase(file, name)
% Deprecated. To be removed after Cantera 2.3.
% See :ref:`sec-phases`.
%
% See also: :mat:func:`Solution`
@ -13,6 +14,7 @@ function s = importPhase(file, name)
% Instance of class :mat:func:`Solution`
%
warning('This function is deprecated and will be removed after Cantera 2.3. Use Solution instead');
if nargin == 1
s = Solution(file);
elseif nargin == 2