cantera/interfaces/matlab/toolbox/1D/@Domain1D/domainIndex.m

8 lines
218 B
Matlab

function i = domainIndex(d)
% DOMAININDEX - domain index.
%
% This function returns an integer flag denoting the location
% of the domain, beginning with 1 at the left.
%
i = domain_methods(d.dom_id, 13) + 1;