Skip to content

Commit

Permalink
Subtype alg and exported progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 1, 2016
1 parent b0f1f6f commit e2cc207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/integrators/integrator_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
local ΔZ::randType
@unpack f,g,u,t,dt,T,alg,maxiters,timeseries,Ws,ts,timeseries_steps,save_timeseries,adaptive,adaptivealg,δ,γ,abstol,reltol,qmax,dtmax,dtmin,internalnorm,discard_length,progress_on,progress_name,progress_steps,progress_message,unstable_check,rands,sqdt,W,Z,tableau = integrator

progress_on && (prog = ProgressBar(name=progress_name))
progress_on && (prog = Juno.ProgressBar(name=progress_name))
if uType <: AbstractArray
EEsttmp = zeros(u)
end
Expand Down Expand Up @@ -270,7 +270,7 @@ end
end
if progress_on && iter%progress_steps==0
msg(prog,progress_message(dt,t,u))
progress(prog,t/T)
Juno.progress(prog,t/T)
end
end

Expand All @@ -292,6 +292,6 @@ end
push!(timeseries,u)
push!(Ws,W)
end
progress_on && done(prog)
progress_on && Juno.done(prog)
u,t,W,timeseries,ts,Ws,max_stack_size,max_stack_size2
end
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@inline ODE_DEFAULT_PROG_MESSAGE(dt,t,u) = "dt="*string(dt)*"\nt="*string(t)*"\nmax u="*string(maximum(abs.(u)))
@inline ODE_DEFAULT_UNSTABLE_CHECK(dt,t,u) = any(isnan,u)

function solve{uType,tType,isinplace,NoiseClass,F,F2,F3,algType}(
function solve{uType,tType,isinplace,NoiseClass,F,F2,F3,algType<:AbstractSDEAlgorithm}(
prob::AbstractSDEProblem{uType,tType,isinplace,NoiseClass,F,F2,F3},
alg::algType;
dt::Number=0.0,save_timeseries::Bool = true,
Expand Down

0 comments on commit e2cc207

Please sign in to comment.