Skip to content

Commit

Permalink
Merge pull request #111 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Allow Catalyst v13
  • Loading branch information
ChrisRackauckas authored Jul 18, 2023
2 parents be52a5d + cc20441 commit c642291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/SDEProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"

[compat]
Aqua = "0.5"
Catalyst = "11, 12"
Catalyst = "13"
DiffEqBase = "6"
RuntimeGeneratedFunctions = "0.5"
julia = "1.6"
Expand Down
6 changes: 3 additions & 3 deletions lib/SDEProblemLibrary/src/SDEProblemLibrary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ prob_sde_bruss = SDEProblem(bruss_f, bruss_g, [3.0, 2.0], (0.0, 100.0), p,
noise_rate_prototype = zeros(2, 4))

network = @reaction_network begin
@parameters p1=0.01 p2=3.0 p3=3.0 p4=4.5 p5=2.0 p6=15.0 p7=20.0 p8=0.005 p9=0.01 p10=0.05
p1, (X, Y, Z) --> 0
hill(X, p2, 100.0, -4), 0 --> Y
hill(Y, p3, 100.0, -4), 0 --> Z
Expand All @@ -501,13 +502,12 @@ network = @reaction_network begin
R * p8, S --> SP
p9, SP + SP --> SP2
p10, SP2 --> 0
end p1 p2 p3 p4 p5 p6 p7 p8 p9 p10
p = (0.01, 3.0, 3.0, 4.5, 2.0, 15.0, 20.0, 0.005, 0.01, 0.05)
end

"""
An oscillatory chemical reaction system
"""
prob_sde_oscilreact = SDEProblem(network, [200.0, 60.0, 120.0, 100.0, 50.0, 50.0, 50.0],
(0.0, 4000.0), p, eval_module = @__MODULE__)
(0.0, 4000.0), eval_module = @__MODULE__)

end # module

0 comments on commit c642291

Please sign in to comment.