Skip to content

Commit a3f4362

Browse files
Merge pull request #93 from SciML/runtimegenerated
Fix interaction between precompilation and runtimegeneratedfunctions
2 parents 8361feb + 75380ea commit a3f4362

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

lib/JumpProblemLibrary/Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name = "JumpProblemLibrary"
22
uuid = "faf0f6d7-8cee-47cb-b27c-1eb80cef534e"
3-
version = "0.1.0"
3+
version = "0.1.1"
44

55
[deps]
66
Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
8+
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
89

910
[compat]
1011
Aqua = "0.5"
1112
Catalyst = "11, 12"
1213
DiffEqBase = "6"
14+
RuntimeGeneratedFunctions = "0.5"
1315
julia = "1.6"
1416

1517
[extras]
1618
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1719

1820
[targets]
19-
test = ["Aqua"]
21+
test = ["Aqua"]

lib/JumpProblemLibrary/src/JumpProblemLibrary.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module JumpProblemLibrary
22

33
using DiffEqBase, Catalyst
4+
5+
import RuntimeGeneratedFunctions
6+
RuntimeGeneratedFunctions.init(@__MODULE__)
7+
48
# Jump Example Problems
59
export prob_jump_dnarepressor, prob_jump_constproduct, prob_jump_nonlinrxs,
610
# examples mixing mass action and constant rate jumps

lib/ODEProblemLibrary/Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ODEProblemLibrary"
22
uuid = "fdc4e326-1af4-4b90-96e7-779fcce2daa5"
3-
version = "0.1.0"
3+
version = "0.1.1"
44

55
[deps]
66
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -10,17 +10,19 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1111
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1212
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
13+
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
1314

1415
[compat]
1516
Aqua = "0.5"
1617
DiffEqBase = "6"
1718
DiffEqOperators = "4"
1819
Latexify = "0.15"
1920
ModelingToolkit = "7,8"
21+
RuntimeGeneratedFunctions = "0.5"
2022
julia = "1.6"
2123

2224
[extras]
2325
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
2426

2527
[targets]
26-
test = ["Aqua"]
28+
test = ["Aqua"]

lib/ODEProblemLibrary/src/ODEProblemLibrary.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ using LinearAlgebra
99
using Markdown
1010
using Random
1111

12+
import RuntimeGeneratedFunctions
13+
RuntimeGeneratedFunctions.init(@__MODULE__)
14+
1215
Random.seed!(100)
1316

1417
#ODE Example Problems

lib/SDEProblemLibrary/Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
name = "SDEProblemLibrary"
22
uuid = "c72e72a9-a271-4b2b-8966-303ed956772e"
3-
version = "0.1.0"
3+
version = "0.1.1"
44

55
[deps]
66
Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
88
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
9+
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
910

1011
[compat]
1112
Aqua = "0.5"
1213
Catalyst = "11, 12"
1314
DiffEqBase = "6"
15+
RuntimeGeneratedFunctions = "0.5"
1416
julia = "1.6"
1517

1618
[extras]
1719
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1820

1921
[targets]
20-
test = ["Aqua"]
22+
test = ["Aqua"]

lib/SDEProblemLibrary/src/SDEProblemLibrary.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module SDEProblemLibrary
22

33
using DiffEqBase, Catalyst, Markdown
4+
5+
import RuntimeGeneratedFunctions
6+
RuntimeGeneratedFunctions.init(@__MODULE__)
7+
48
#SDE Example Problems
59
export prob_sde_wave, prob_sde_linear, prob_sde_cubic, prob_sde_2Dlinear,
610
prob_sde_lorenz, prob_sde_2Dlinear, prob_sde_additive,
@@ -159,8 +163,8 @@ oval2ModelExample(;largeFluctuations=false,useBigs=false,noiseLevel=1)
159163
A function which generates the Oval2 Epithelial-Mesenchymal Transition model
160164
from:
161165
162-
Rackauckas, C., & Nie, Q. (2017). Adaptive methods for stochastic differential equations
163-
via natural embeddings and rejection sampling with memory. Discrete and continuous
166+
Rackauckas, C., & Nie, Q. (2017). Adaptive methods for stochastic differential equations
167+
via natural embeddings and rejection sampling with memory. Discrete and continuous
164168
dynamical systems. Series B, 22(7), 2731.
165169
166170
19 SDEs which are only stiff during transitions between biological states.

0 commit comments

Comments
 (0)