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;
|
||||
xx = zeros(1, nr);
|
||||
pt = libpointer('doublePtr', xx);
|
||||
ctFunc('kin_getRevRateConstants', kin.kinID, 1, nr, pt);
|
||||
ctFunc('kin_getRevRateConstants', kin.kinID, 0, nr, pt);
|
||||
k = pt.Value;
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user