Skip to content

Commit

Permalink
fix inv default
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 10, 2021
1 parent 96c0f09 commit 4077245
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.group == 'Downstream' }}
strategy:
fail-fast: false
#fail-fast: false
matrix:
group:
- InterfaceI
Expand Down
2 changes: 1 addition & 1 deletion src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const ROSENBROCK_INV_CUTOFF = 7 # https://github.com/SciML/OrdinaryDiffEq.jl/pul

struct StaticWOperator{isinv, T}
W::T
function StaticWOperator(W::T,callinv = false) where T
function StaticWOperator(W::T,callinv = true) where T
isinv = size(W, 1) <= ROSENBROCK_INV_CUTOFF

# when constructing W for the first time for the type
Expand Down
20 changes: 10 additions & 10 deletions test/interface/static_array_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function rober(u,p,t)
end
prob = ODEProblem{false}(rober,SA[1.0,0.0,0.0],(0.0,1e5),SA[0.04,3e7,1e4])
# Defaults to reltol=1e-3, abstol=1e-6
sol = solve(prob,Rosenbrock23(chunk_size = Val{3}()),save_everystep=false)
sol = solve(prob,Rodas4(chunk_size = Val{3}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rosenbrock23(chunk_size = Val{3}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rodas4(chunk_size = Val{3}()),save_everystep=false)

function hires_4(u,p,t)
y1,y2,y3,y4 = u
Expand All @@ -109,8 +109,8 @@ end
u0 = SA[1,0,0,0.0057]
prob = ODEProblem(hires_4,u0,(0.0,321.8122))
# Defaults to reltol=1e-3, abstol=1e-6
sol = solve(prob,Rosenbrock23(chunk_size = Val{4}()),save_everystep=false)
sol = solve(prob,Rodas5(chunk_size = Val{4}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rosenbrock23(chunk_size = Val{4}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rodas5(chunk_size = Val{4}()),save_everystep=false)

function hires_5(u,p,t)
y1,y2,y3,y4,y5 = u
Expand All @@ -125,8 +125,8 @@ end
u0 = SA[1,0,0,0,0.0057]
prob = ODEProblem(hires_5,u0,(0.0,321.8122))
# Defaults to reltol=1e-3, abstol=1e-6
sol = solve(prob,Rosenbrock23(chunk_size = Val{5}()),save_everystep=false)
sol = solve(prob,Rodas4(chunk_size = Val{5}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rosenbrock23(chunk_size = Val{5}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rodas4(chunk_size = Val{5}()),save_everystep=false)

function hires(u,p,t)
y1,y2,y3,y4,y5,y6,y7,y8 = u
Expand All @@ -145,8 +145,8 @@ end
u0 = SA[1,0,0,0,0,0,0,0.0057]
prob = ODEProblem(hires,u0,(0.0,321.8122))
# Defaults to reltol=1e-3, abstol=1e-6
sol = solve(prob,Rosenbrock23(chunk_size = Val{8}()),save_everystep=false)
sol = solve(prob,Rodas5(chunk_size = Val{8}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rosenbrock23(chunk_size = Val{8}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rodas5(chunk_size = Val{8}()),save_everystep=false)

const k1=.35e0
const k2=.266e2
Expand Down Expand Up @@ -234,5 +234,5 @@ u0[9] = 0.01
u0[17] = 0.007
u0 = SA[u0...]
prob = ODEProblem(f,u0,(0.0,60.0))
sol = solve(prob,Rosenbrock23(chunk_size = Val{8}()),save_everystep=false)
sol = solve(prob,Rodas5(chunk_size = Val{8}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rosenbrock23(chunk_size = Val{8}()),save_everystep=false)
@test_nowarn sol = solve(prob,Rodas5(chunk_size = Val{8}()),save_everystep=false)

0 comments on commit 4077245

Please sign in to comment.