These changes make it unnecessary to copy header files around during the build process, which tends to confuse IDEs and debuggers. The headers which comprise Cantera's external C++ interface are now in the 'include' directory. All of the samples and demos are now in the 'samples' subdirectory.
11 lines
208 B
Matlab
11 lines
208 B
Matlab
function b = subsref(s,index)
|
|
% SUBSREF -
|
|
switch index.type
|
|
case '()'
|
|
b = s.domains(index.subs{:});
|
|
case '.'
|
|
n = domainIndex(s, index.subs);
|
|
b = s.domains(n);
|
|
otherwise
|
|
error('syntax error');
|
|
end
|