Skip to content

Commit

Permalink
removing redefinitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Dec 22, 2023
1 parent 04b834d commit 720e178
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions test/errors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ using DormandPrince:

using DormandPrince. DP5: dopri5

function fcn(x, y, f)
f[1] = y[1]^2 - y[1]^3
end

@testset "Larger nmax needed" begin
solver = DP5Solver(
fcn,
stiff_fcn,
0.0, # start at 0.0
[0.0001] # delta
; maximum_allowed_steps=1
Expand All @@ -27,7 +23,7 @@ end

@testset "Step size becomes too small" begin
solver = DP5Solver(
fcn,
stiff_fcn,
0.0,
[0.0001]
; uround=10000
Expand Down
4 changes: 2 additions & 2 deletions test/stiff.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using Test
using DormandPrince: DP5Solver, integrate

function fcn(x, y, f)
function stiff_fcn(x, y, f)
f[1] = y[1]^2 - y[1]^3
end

@testset "Stiff ODE" begin

solver = DP5Solver(
fcn,
stiff_fcn,
0.0, # start at 0.0
[0.0001] # initial value of delta
)
Expand Down

0 comments on commit 720e178

Please sign in to comment.