mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Matlab] Return 0 as reverse rate constant for irreversible reactions
This behavior is consistent with Python and the default behavior in C++
This commit is contained in:
parent
529ed11918
commit
47e7c1a2de
@ -542,7 +542,7 @@ classdef Kinetics < handle
|
|||||||
nr = kin.nReactions;
|
nr = kin.nReactions;
|
||||||
xx = zeros(1, nr);
|
xx = zeros(1, nr);
|
||||||
pt = libpointer('doublePtr', xx);
|
pt = libpointer('doublePtr', xx);
|
||||||
ctFunc('kin_getRevRateConstants', kin.kinID, 1, nr, pt);
|
ctFunc('kin_getRevRateConstants', kin.kinID, 0, nr, pt);
|
||||||
k = pt.Value;
|
k = pt.Value;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user