We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73d0c4d commit c7f35deCopy full SHA for c7f35de
src/+ssit/+ssa/runSingleSsa.m
@@ -128,6 +128,10 @@
128
else
129
% If the reaction is not delayed, perform it; i.e.
130
131
+ % Advance t to the time of the reaction:
132
+
133
+ t = t + delta_t;
134
135
% Add the current state to the record of states for all
136
% intervening times:
137
@@ -142,11 +146,7 @@
142
146
143
147
% Update the state according to the reaction:
144
148
145
- x = x + S(:, rxn);
-
- % Advance t to the time of the reaction:
149
- t = t + delta_t;
+ x = x + S(:, rxn);
150
end % Step 7 ...
151
end % rowsize(1, 1) == 0 [No delayed reactions were upcoming]
152
end % while t < max(T_array) ...
0 commit comments