[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:
Ray Speth 2024-06-01 21:45:02 -04:00 committed by Ray Speth
parent 529ed11918
commit 47e7c1a2de

View File

@ -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