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.
23 lines
469 B
Matlab
23 lines
469 B
Matlab
function s = Interface(src, id, p1, p2, p3, p4)
|
|
% Interface - class Interface constructor.
|
|
%
|
|
doc = XML_Node('doc',src);
|
|
node = findByID(doc,id);
|
|
t = ThermoPhase(node);
|
|
if nargin == 2
|
|
k = Kinetics(node,t);
|
|
elseif nargin == 3
|
|
k = Kinetics(node,t,p1);
|
|
elseif nargin == 4
|
|
k = Kinetics(node,t,p1,p2);
|
|
elseif nargin == 5
|
|
k = Kinetics(node,t,p1,p2,p3);
|
|
elseif nargin == 6
|
|
k = Kinetics(node,t,p1,p2,p3,p4);
|
|
end
|
|
|
|
s.kin = k;
|
|
s.th = t;
|
|
s = class(s,'Interface',t,k);
|
|
|
|
|