File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 285285# values. If it has been explicitly udpated, the corresponding elimianted quantity will have its
286286# vaue updated to accomodate new Γ/species values (also, the elimianted species's value can not longer be changed).
287287let
288- # Prepares an `ODEProblem` with conserved quantities eliminated. Computes the conservation equation.
288+ # Prepares the problem inputs and computes the conservation equation.
289289 rn = @reaction_network begin
290290 (k1,k2), 2 X1 <--> X2
291291 (k3,k4), X1 + X2 <--> X3
296296 conserved_quantity = conservationlaw_constants (rn)[1 ]. rhs
297297
298298 # Loops through the tests for different problem types.
299- oprob_old = ODEProblem (rn, u0, 1.0 , ps; remove_conserved = true )
300- sprob_old = SDEProblem (rn, u0, 1.0 , ps; remove_conserved = true )
301-
302- for prob in [oprob_old, sprob_old]
303- prob_old = prob
304-
299+ oprob = ODEProblem (rn, u0, 1.0 , ps; remove_conserved = true )
300+ sprob = SDEProblem (rn, u0, 1.0 , ps; remove_conserved = true )
301+ for prob_old in [oprob, sprob]
305302 # For a couple of iterations, updates the problem, ensuring that when a species is updated:
306303 # - Only that species and the conservation constant have their values updated.
307304 # The `≈` is because sometimes the computed values will not be fully exact.
You can’t perform that action at this time.
0 commit comments