cantera/interfaces/matlab/toolbox/@Kinetics/setMultiplier.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

24 lines
391 B
Matlab
Executable file

function setMultiplier(a,irxn,v)
% SETMULTIPLIER Set the rate of progress multiplier.
%
% SETMULTIPLIER(K, IRXN, V) sets the multipler for reaction IRXN
% to value V.
%
% see also: MULTIPLIER
%
if nargin == 2
v = irxn;
m = nReactions(a);
irxn = [1:m]';
n = 1;
else
[m, n] = size(irxn);
end
for jm = 1:m
for jn = 1:n
kinetics_set(a.id,1,irxn(jm,jn),v);
end
end