[Matlab] Switch to explicit class specific hndl functions. Deprecate generic hndl functions
This commit is contained in:
parent
519bf12faa
commit
0c1688a361
9 changed files with 17 additions and 4 deletions
|
|
@ -5,8 +5,8 @@ if nargin == 3
|
|||
error(['Flow devices can only be installed between reactors or' ...
|
||||
' reservoirs'])
|
||||
end
|
||||
i = hndl(upstream);
|
||||
j = hndl(downstream);
|
||||
i = reactor_hndl(upstream);
|
||||
j = reactor_hndl(downstream);
|
||||
ok = flowdevicemethods(2, f.index, i, j);
|
||||
if ok < 0
|
||||
error(geterr)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ if ~isa(r, 'XML_Node')
|
|||
end
|
||||
|
||||
k.owner = 1;
|
||||
ixml = hndl(r);
|
||||
ixml = xml_hndl(r);
|
||||
|
||||
% get the integer indices used to find the stored objects
|
||||
% representing the phases participating in the mechanism.
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
function i = hndl(k)
|
||||
|
||||
warning('This function is deprecated in favor of kinetics_hndl.m')
|
||||
i = k.id;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
function i = hndl(r)
|
||||
|
||||
warning('This function is deprecated in favor of reactor_hndl.m')
|
||||
i = r.index;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ if nargin == 1
|
|||
return
|
||||
elseif isa(r, 'XML_Node')
|
||||
t.owner = 1;
|
||||
hr = hndl(r);
|
||||
hr = xml_hndl(r);
|
||||
t.tp_id = thermo_get(hr, 0);
|
||||
if t.tp_id < 0
|
||||
error(geterr);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
function i = hndl(p)
|
||||
|
||||
warning('This function is deprecated in favor of thermo_hndl.m')
|
||||
i = p.tp_id;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
function n = hndl(a)
|
||||
|
||||
warning('This function is deprecated in favor of trans_hndl')
|
||||
n = a.id;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
function i = hndl(x)
|
||||
|
||||
warning('This function is deprecated in favor of xml_hndl.m')
|
||||
i = x.id;
|
||||
|
|
|
|||
3
interfaces/matlab/toolbox/@XML_Node/xml_hndl.m
Normal file
3
interfaces/matlab/toolbox/@XML_Node/xml_hndl.m
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function i = xml_hndl(x)
|
||||
|
||||
i = x.id;
|
||||
Loading…
Add table
Reference in a new issue