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.
25 lines
575 B
Matlab
25 lines
575 B
Matlab
function s = Stack(domains)
|
|
%
|
|
% STACK - A one-dimensional 'stack' of domains.
|
|
%
|
|
% A stack object is a container for one-dimensional domains,
|
|
% which are instances of class Domain1D. The domains are of two
|
|
% types - extended domains, and connector domains.
|
|
%
|
|
s.stack_id = -1;
|
|
s.domains = domains;
|
|
if nargin == 1
|
|
nd = length(domains);
|
|
for n=1:nd
|
|
ids(n) = domain_hndl(domains(n));
|
|
end
|
|
s.stack_id = stack_methods(0, 8, nd, ids);
|
|
else
|
|
help(Stack);
|
|
error('wrong number of parameters');
|
|
end
|
|
if s.stack_id < 0
|
|
error(geterr);
|
|
end
|
|
s = class(s, 'Stack');
|
|
|