Skip to content

Commit

Permalink
Fix nord tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jul 13, 2018
1 parent 69a0763 commit b6750c8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/ode/nordsieck_tests.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
using OrdinaryDiffEq, DiffEqDevTools, Test, Random
import DiffEqProblemLibrary.ODEProblemLibrary: prob_ode_linear, prob_ode_2Dlinear
using OrdinaryDiffEq, DiffEqDevTools, Test
import DiffEqProblemLibrary.ODEProblemLibrary: prob_ode_bigfloatlinear, prob_ode_bigfloat2Dlinear

srand(100)
linear_bigαN = big"0.5"
f_linearbig = (u,p,t) -> (linear_bigαN*u)
f_2dlinearbig = (du,u,p,t) -> (du.=linear_bigαN*u)
(f::typeof(f_linearbig))(::Type{Val{:analytic}},u0,p,t) = u0*exp(linear_bigαN*t)
(f::typeof(f_2dlinearbig))(::Type{Val{:analytic}},u0,p,t) = u0*exp.(linear_bigαN*t)
probArr = [ODEProblem(f_linearbig, big"0.5", (0,1.)),
ODEProblem(f_2dlinearbig, big.(rand(4,2)), (0,1.)),]
probArr = [prob_ode_bigfloatlinear, prob_ode_bigfloat2Dlinear]
testTol = 0.2
dts = 1 .//(2 .^(10:-1:4))
dts = 1 .//(2 .^(10:-1:5))

@testset "Nordsieck Convergence Tests" begin
for i in eachindex(probArr)
Expand Down

0 comments on commit b6750c8

Please sign in to comment.