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.
29 lines
409 B
Matlab
Executable file
29 lines
409 B
Matlab
Executable file
function e = rxnEqs(a, irxn)
|
|
% rxnEqs
|
|
%
|
|
if nargin == 1
|
|
m = nReactions(a);
|
|
n = 1;
|
|
irxn = [1:m]'
|
|
elseif nargin == 2
|
|
if isa(irxn,'double')
|
|
[m, n] = size(irxn);
|
|
else
|
|
error('reaction number(s) must be numeric');
|
|
end
|
|
end
|
|
|
|
if m == 1 & n == 1
|
|
e = rxnstring(a.id, irxn);
|
|
else
|
|
e = {};
|
|
for i = 1:m
|
|
for j = 1:n
|
|
e{i,j} = rxnstring(a.id, irxn(i,j));
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|