Skip to content

Commit 6aa076e

Browse files
committed
defaults for spatial and using OrdinaryDiffEqTsit5 in hybrid docstring
1 parent 36bcb91 commit 6aa076e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/reactionsystem_conversions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ end
795795
796796
Example:
797797
```julia
798-
using Catalyst, OrdinaryDiffEq, JumpProcesses, Plots
798+
using Catalyst, OrdinaryDiffEqTsit5, JumpProcesses, Plots
799799
rn = @reaction_network begin
800800
k*(1 + sin(t)), 0 --> A
801801
end

src/spatial_reaction_systems/lattice_reaction_systems.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ are possible.
2727
Example:
2828
```julia
2929
# Fetch packages.
30-
using Catalyst, OrdinaryDiffEqTsit5
30+
using Catalyst, OrdinaryDiffEqDefault
3131
import CairoMakie
3232
3333
# Creates the `LatticeReactionSystem` model.
@@ -43,7 +43,7 @@ u0 = [:X => rand(5,5)]
4343
tspan = (0.0, 1.0)
4444
ps = [:p => 1.0, :d => 0.5, :D => 0.1]
4545
oprob = ODEProblem(lrs, u0, tspan, ps)
46-
osol = solve(oprob, Tsit5())
46+
osol = solve(oprob)
4747
4848
# Saves an animation of the solution to the file "lattice_animation.mp4".
4949
lattice_animation(osol, :X, lrs, "lattice_animation.mp4")

src/spatial_reaction_systems/lattice_sim_struct_interfacing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Notes:
307307
308308
Example:
309309
```julia
310-
using Catalyst, OrdinaryDiffEqTsit5
310+
using Catalyst, OrdinaryDiffEqDefault
311311
312312
# Prepare `LatticeReactionSystem`s.
313313
rs = @reaction_network begin
@@ -322,7 +322,7 @@ tspan = (0.0, 10.0)
322322
ps = [:k1 => 1, :k2 => 2.0, :D => 0.1]
323323
324324
oprob = ODEProblem(lrs1, u0, tspan, ps)
325-
osol = solve(oprob1, Tsit5())
325+
osol = solve(oprob)
326326
lat_getu(osol, :X1, lrs) # Returns the value of X1 at each time step.
327327
lat_getu(osol, :X1, lrs; t = 0.0:10.0) # Returns the value of X1 at times 0.0, 1.0, ..., 10.0
328328
```

0 commit comments

Comments
 (0)