Deprecation of MatLab importPhase function
Addition of comments in importPhase to warn for function deprecation.
This commit is contained in:
parent
5b2406470c
commit
1e08d7499c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue