Skip to content

Commit

Permalink
fix deps in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 22, 2018
1 parent 05744ee commit f2f9418
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Base.@pure FunctionMap(;scale_by_time=false) = FunctionMap{scale_by_time}()
struct ExplicitRK{TabType} <: OrdinaryDiffEqAdaptiveAlgorithm
tableau::TabType
end
ExplicitRK() = ExplicitRK(ODE_DEFAULT_TABLEAU)
ExplicitRK(;tableau=ODE_DEFAULT_TABLEAU) = ExplicitRK(ODE_DEFAULT_TABLEAU)

@inline trivial_limiter!(u, f, t) = nothing

Expand Down
4 changes: 2 additions & 2 deletions test/ode/ode_initdt_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import DiffEqProblemLibrary.ODEProblemLibrary: prob_ode_linear, prob_ode_2Dlinea
dt₀ = sol.t[2]

prob = prob_ode_2Dlinear
sol =solve(prob,ExplicitRK(constructBogakiShampine3()))
sol =solve(prob,ExplicitRK(tableau=constructBogakiShampine3()))
dt₀ = sol.t[2]

@test 1e-7 < dt₀ < .1
@test_throws ErrorException sol = solve(prob,Euler())
#dt₀ = sol.t[2]

sol3 =solve(prob,ExplicitRK(constructDormandPrince8_64bit()))
sol3 =solve(prob,ExplicitRK(tableau=constructDormandPrince8_64bit()))
dt₀ = sol3.t[2]

@test 1e-7 < dt₀ < .3
Expand Down
12 changes: 6 additions & 6 deletions test/ode/ode_rosenbrock_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using DiffEqProblemLibrary.ODEProblemLibrary: importodeproblems; importodeproble
import DiffEqProblemLibrary.ODEProblemLibrary: prob_ode_linear, prob_ode_2Dlinear,
prob_ode_bigfloatlinear, prob_ode_bigfloat2Dlinear

dts = 1.//2.^(6:-1:3)
dts = (1/2) .^ (6:-1:3)
testTol = 0.2

### Rosenbrock23()
Expand All @@ -28,10 +28,10 @@ sol = solve(prob,Rosenbrock23())

prob = prob_ode_bigfloat2Dlinear

sim = test_convergence(dts,prob,Rosenbrock23(linsolve=LinSolveFactorize(qrfact!)))
sim = test_convergence(dts,prob,Rosenbrock23(linsolve=LinSolveFactorize(qr!)))
@test abs(sim.𝒪est[:final]-2) < testTol

sol = solve(prob,Rosenbrock23(linsolve=LinSolveFactorize(qrfact!)))
sol = solve(prob,Rosenbrock23(linsolve=LinSolveFactorize(qr!)))
@test length(sol) < 20

### Rosenbrock32()
Expand Down Expand Up @@ -163,7 +163,7 @@ sol = solve(prob,GRK4T())
@test length(sol) < 20

### GRK4A
dts = 1.//2.^(7:-1:4)
dts = (1/2) .^ (7:-1:4)

prob = prob_ode_linear

Expand Down Expand Up @@ -203,7 +203,7 @@ sol = solve(prob,Ros4LStab())

println("RODAS")

dts = 1.//2.^(7:-1:4)
dts = (1/2) .^ (7:-1:4)

prob = prob_ode_linear

Expand Down Expand Up @@ -288,7 +288,7 @@ println("Rodas5")

prob = prob_ode_linear

dts = 1.//2.^(7:-1:3)
dts = (1/2) .^ (7:-1:3)
sim = test_convergence(dts,prob,Rodas5(),dense_errors=true)
@test abs(sim.𝒪est[:final]-5) < testTol
@test abs(sim.𝒪est[:L2]-4) < testTol
Expand Down
2 changes: 1 addition & 1 deletion test/owrenzen_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DiffEqProblemLibrary.ODEProblemLibrary: prob_ode_2Dlinear, prob_ode_linea

srand(100)
## Convergence Testing
dts = 1.//2.^(7:-1:4)
dts = (1/2) .^ (7:-1:4)
testTol = 0.2


Expand Down

0 comments on commit f2f9418

Please sign in to comment.