Skip to content

Commit edf0d32

Browse files
authored
Replace OrdinaryDiffEq with OrdinaryDiffEqTsit5 (#303)
* Replace `OrdinaryDiffEq` with `OrdinaryDiffEqTsit5` * Load ForwardDiff to make this work
1 parent eae413a commit edf0d32

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

test/Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
33
ChunkSplitters = "ae650224-84b6-46f8-82ea-d812ca08434e"
44
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
55
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
6+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
67
GaussianRandomFields = "e4b2fa32-6e09-5554-b718-106ed5adafe9"
78
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
89
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
910
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
10-
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
11+
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
1112
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
1213
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1314
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
@@ -20,11 +21,12 @@ Aqua = "0.8"
2021
ChunkSplitters = "3.1"
2122
DelimitedFiles = "<0.0.1, 1"
2223
Distributions = "0.22, 0.23, 0.24, 0.25"
24+
ForwardDiff = "1.2"
2325
GaussianRandomFields = "2.2.1"
2426
HDF5 = "0.14, 0.15, 0.16, 0.17"
2527
LinearAlgebra = "<0.0.1, 1"
2628
MPI = "0.20.8"
27-
OrdinaryDiffEq = "6.40"
29+
OrdinaryDiffEqTsit5 = "1.5"
2830
PDMats = "0.11"
2931
Random = "<0.0.1, 1"
3032
StableRNGs = "1"

test/models/lorenz63.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ using Distributions
55
using HDF5
66
using Random
77
using PDMats
8-
using OrdinaryDiffEq
8+
# `ForwardDiff` is only needed to trigger loading a pkgextension.
9+
import ForwardDiff as _
10+
using OrdinaryDiffEqTsit5: OrdinaryDiffEqTsit5, Tsit5, ODEProblem, reinit!, step!
911
using ParticleDA
1012

1113
Base.@kwdef struct Lorenz63ModelParameters{S <: Real, T <: Real}
@@ -50,7 +52,7 @@ function init(
5052
parameters = get_params(Lorenz63ModelParameters{S, T}, parameters_dict)
5153
time_span = (0, parameters.time_step)
5254
integrators = [
53-
OrdinaryDiffEq.init(
55+
OrdinaryDiffEqTsit5.init(
5456
ODEProblem(update_time_derivative!, u, time_span, parameters),
5557
Tsit5();
5658
save_everystep=false

0 commit comments

Comments
 (0)