Skip to content

Commit

Permalink
higher monte for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 24, 2016
1 parent 09d1caa commit b0f1f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sde/sde_twodimlinear_tests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using StochasticDiffEq, DiffEqProblemLibrary, DiffEqDevTools
srand(70)
srand(100)
prob = prob_sde_2Dlinear

## Solve and plot
Expand All @@ -24,11 +24,11 @@ solArr = monte_carlo_simulation(prob,SRIW1(),dt=1//2^(3),numMonte=5)
println("Convergence Test on 2D Linear")
dts = 1./2.^(7:-1:4) #14->7 good plot

sim = test_convergence(dts,prob,EM(),numMonte=10)
sim = test_convergence(dts,prob,EM(),numMonte=100)

@test abs(sim.𝒪est[:l2]-.5) < 0.1

sim2 = test_convergence(dts,prob,RKMil(),numMonte=10)
sim2 = test_convergence(dts,prob,RKMil(),numMonte=100)
@test abs(sim2.𝒪est[:l∞]-1) < 0.1

sim3 = test_convergence(dts,prob,SRI(),numMonte=10)
Expand Down

0 comments on commit b0f1f6f

Please sign in to comment.