cantera/interfaces/matlab/toolbox/@ReactorNet/ReactorNet.m
Ray Speth 2528df0f75 Reorganized source tree structure
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.
2012-02-12 02:27:14 +00:00

26 lines
439 B
Matlab

function x = ReactorNet(reactors)
% REACTOR - Create a ReactorNet object.
%
% A ReactorNet object is a container that holds one or more
% Reactor objects.
%
if nargin == 1
else
error('wrong number of arguments to ReactorNet constructor');
end
x.index = reactornetmethods(0,0);
if x.index < 0
error(geterr);
end
x = class(x,'ReactorNet');
% add reactors
nr = length(reactors);
for i = 1:nr
addReactor(x,reactors{i});
end