Skip to content

Commit

Permalink
Merge pull request #131 from SciML/bump
Browse files Browse the repository at this point in the history
Bump ModelingToolkit v9 Catalyst v14
  • Loading branch information
ChrisRackauckas authored Jul 20, 2024
2 parents 8d2cf0c + 736af11 commit 2b79432
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/JumpProblemLibrary/src/JumpProblemLibrary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ end
rsi = rates_sym_to_idx
rates = params[[rsi[:kon], rsi[:kAon], rsi[:koff], rsi[:kAoff], rsi[:kAp], rsi[:kAdp]]]
u0 = zeros(Int, 9)
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(states(rs)))
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(unknowns(rs)))
u0[findfirst(isequal(:S1), statesyms)] = params[1]
u0[findfirst(isequal(:S2), statesyms)] = params[2]
u0[findfirst(isequal(:S3), statesyms)] = params[3]
Expand Down Expand Up @@ -202,10 +202,10 @@ function construct_genenetwork(N)
genenetwork
end
rs = construct_genenetwork(N)
u0 = zeros(Int, length(states(rs)))
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(states(rs)))
u0 = zeros(Int, length(unknowns(rs)))
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(unknowns(rs)))
for i in 1:(2 * N)
u0[findfirst(isequal(G[i]), states(rs))] = 1
u0[findfirst(isequal(G[i]), unknowns(rs))] = 1
end
tf = 2000.0
prob = DiscreteProblem(rs, u0, (0.0, tf), eval_module = @__MODULE__)
Expand Down
2 changes: 1 addition & 1 deletion lib/NonlinearProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
[compat]
Aqua = "0.8"
LinearAlgebra = "1.6"
SciMLBase = "1, 2"
SciMLBase = "2"
julia = "1.10"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion lib/ODEProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
[compat]
Aqua = "0.5"
DiffEqBase = "6"
Latexify = "0.15, 0.16"
Latexify = "0.16"
ModelingToolkit = "9"
RuntimeGeneratedFunctions = "0.5"
julia = "1.10"
Expand Down
2 changes: 1 addition & 1 deletion lib/SDEProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"

[compat]
Aqua = "0.5"
Catalyst = "13"
Catalyst = "14"
DiffEqBase = "6"
RuntimeGeneratedFunctions = "0.5"
SciMLBase = "2.0.1"
Expand Down

0 comments on commit 2b79432

Please sign in to comment.