Skip to content

Commit 2b79432

Browse files
Merge pull request #131 from SciML/bump
Bump ModelingToolkit v9 Catalyst v14
2 parents 8d2cf0c + 736af11 commit 2b79432

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/JumpProblemLibrary/src/JumpProblemLibrary.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ end
141141
rsi = rates_sym_to_idx
142142
rates = params[[rsi[:kon], rsi[:kAon], rsi[:koff], rsi[:kAoff], rsi[:kAp], rsi[:kAdp]]]
143143
u0 = zeros(Int, 9)
144-
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(states(rs)))
144+
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(unknowns(rs)))
145145
u0[findfirst(isequal(:S1), statesyms)] = params[1]
146146
u0[findfirst(isequal(:S2), statesyms)] = params[2]
147147
u0[findfirst(isequal(:S3), statesyms)] = params[3]
@@ -202,10 +202,10 @@ function construct_genenetwork(N)
202202
genenetwork
203203
end
204204
rs = construct_genenetwork(N)
205-
u0 = zeros(Int, length(states(rs)))
206-
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(states(rs)))
205+
u0 = zeros(Int, length(unknowns(rs)))
206+
statesyms = ModelingToolkit.tosymbol.(ModelingToolkit.operation.(unknowns(rs)))
207207
for i in 1:(2 * N)
208-
u0[findfirst(isequal(G[i]), states(rs))] = 1
208+
u0[findfirst(isequal(G[i]), unknowns(rs))] = 1
209209
end
210210
tf = 2000.0
211211
prob = DiscreteProblem(rs, u0, (0.0, tf), eval_module = @__MODULE__)

lib/NonlinearProblemLibrary/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
99
[compat]
1010
Aqua = "0.8"
1111
LinearAlgebra = "1.6"
12-
SciMLBase = "1, 2"
12+
SciMLBase = "2"
1313
julia = "1.10"
1414

1515
[extras]

lib/ODEProblemLibrary/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
1414
[compat]
1515
Aqua = "0.5"
1616
DiffEqBase = "6"
17-
Latexify = "0.15, 0.16"
17+
Latexify = "0.16"
1818
ModelingToolkit = "9"
1919
RuntimeGeneratedFunctions = "0.5"
2020
julia = "1.10"

lib/SDEProblemLibrary/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1111

1212
[compat]
1313
Aqua = "0.5"
14-
Catalyst = "13"
14+
Catalyst = "14"
1515
DiffEqBase = "6"
1616
RuntimeGeneratedFunctions = "0.5"
1717
SciMLBase = "2.0.1"

0 commit comments

Comments
 (0)