Skip to content

Commit

Permalink
only warn when verbose and update REQUIRE to no muladd diffeqbase
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 1, 2017
1 parent ed8a93c commit 71b5dc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
julia 0.6.0
DiffEqBase 1.15.0
DiffEqBase 1.16.0
Parameters 0.5.0
ForwardDiff 0.5.0
GenericSVD 0.0.2
Expand Down
9 changes: 3 additions & 6 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ function init{algType<:OrdinaryDiffEqAlgorithm,recompile_flag}(
allow_extrapolation = alg_extrapolates(alg),
initialize_integrator=true,kwargs...)

if save_timeseries != nothing
warn("save_timeseries is deprecated. Use save_everystep instead")
save_everystep = save_timeseries
end

if typeof(prob.f)<:Tuple
if min((mm != I for mm in prob.mass_matrix)...)
error("This solver is not able to use mass matrices.")
Expand Down Expand Up @@ -132,7 +127,9 @@ function init{algType<:OrdinaryDiffEqAlgorithm,recompile_flag}(
error("Automatic dt setting has the wrong sign. Exiting. Please report this error.")
end
if isnan(dt)
warn("Automatic dt set the starting dt as NaN, causing instability.")
if verbose
warn("Automatic dt set the starting dt as NaN, causing instability.")
end
end
elseif adaptive && dt > zero(dt) && tdir < 0
dt *= tdir # Allow positive dt, but auto-convert
Expand Down

0 comments on commit 71b5dc8

Please sign in to comment.