Skip to content

Commit

Permalink
allow Inf maxiters
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jun 26, 2017
1 parent b1e32b3 commit 3ef4a73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/integrators/type.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type DEOptions{uEltype,uEltypeNoUnits,tTypeNoUnits,tType,F2,F3,F4,F5,F6,tstopsType,ECType,SType}
maxiters::Int
type DEOptions{uEltype,uEltypeNoUnits,tTypeNoUnits,tType,F2,F3,F4,F5,F6,tstopsType,ECType,SType,MI}
maxiters::MI
timeseries_steps::Int
save_everystep::Bool
adaptive::Bool
Expand Down
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function init{algType<:OrdinaryDiffEqAlgorithm,recompile_flag}(
saveiter_dense = 0
end

opts = DEOptions(Int(maxiters),timeseries_steps,save_everystep,adaptive,abstol_internal,
opts = DEOptions(maxiters,timeseries_steps,save_everystep,adaptive,abstol_internal,
reltol_internal,tTypeNoUnits(gamma),tTypeNoUnits(qmax),tTypeNoUnits(qmin),
tType(dtmax),tType(dtmin),internalnorm,save_idxs,
tstops_internal,saveat_internal,d_discontinuities_internal,
Expand Down
3 changes: 1 addition & 2 deletions test/ode/ode_twodimlinear_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ prob = prob_ode_2Dlinear

integrator = init(prob,Euler();dt=1//2^(4))

sol =solve(prob,Euler();dt=1//2^(4),maxiters=1e6)

sol =solve(prob,Euler();dt=1//2^(4),maxiters=Inf)

integrator = init(prob,Tsit5();dt=1//2^(4))

Expand Down

0 comments on commit 3ef4a73

Please sign in to comment.