Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 21, 2018
1 parent 1173d23 commit 3af59d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/ode_default_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ function default_algorithm(prob::DiffEqBase.AbstractODEProblem{uType,tType,inpla
elseif tol_level == :high_tol
alg = Rosenbrock23(autodiff=false)
else
if eltype(prob.u0) <: Float64
alg = Rodas4(autodiff=false)
else # This is only for Julia v0.6 lufact! bug
alg = Rodas4(autodiff=false,linsolve=LinSolveFactorize(qrfact!))
end
alg = Rodas4(autodiff=false)
end
else # :auto ∈ alg_hints
if !(uEltype <: Float64) || tol_level == :extreme_tol
Expand Down
2 changes: 1 addition & 1 deletion test/default_dae_alg_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ using DiffEqProblemLibrary.DAEProblemLibrary: importdaeproblems; importdaeproble
import DiffEqProblemLibrary.DAEProblemLibrary: prob_dae_resrob

prob = prob_dae_resrob
sol =solve(prob)
sol = solve(prob)

@test typeof(sol.alg) <: IDA
1 change: 1 addition & 0 deletions test/default_sde_alg_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using DifferentialEquations, DiffEqProblemLibrary, Test
using DiffEqProblemLibrary.SDEProblemLibrary: importsdeproblems; importsdeproblems()
import DiffEqProblemLibrary.SDEProblemLibrary: prob_sde_additive

using Random
srand(100)

prob = prob_sde_additive
Expand Down

0 comments on commit 3af59d6

Please sign in to comment.