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.
15 lines
212 B
Matlab
15 lines
212 B
Matlab
function x = FlowDevice(typ)
|
|
%
|
|
if nargin == 0
|
|
typ = 1;
|
|
end
|
|
x.index = flowdevicemethods(0,typ);
|
|
if x.index < 0
|
|
error(geterr);
|
|
end
|
|
x.type = typ;
|
|
x.upstream = -1;
|
|
x.downstream = -1;
|
|
x = class(x,'FlowDevice');
|
|
|
|
|