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.
16 lines
No EOL
390 B
Matlab
16 lines
No EOL
390 B
Matlab
function install(f, upstream, downstream)
|
|
|
|
if nargin == 3
|
|
if ~isa(upstream,'Reactor') | ~isa(downstream,'Reactor')
|
|
error(['Flow devices can only be installed between reactors or' ...
|
|
' reservoirs'])
|
|
end
|
|
i = hndl(upstream);
|
|
j = hndl(downstream);
|
|
ok = flowdevicemethods(2, f.index, i, j);
|
|
if ok < 0
|
|
error(geterr)
|
|
end
|
|
else
|
|
error('install requires 3 arguments')
|
|
end |