Skip to content

Commit 8fdacb6

Browse files
committed
minor changes
1 parent 0ec00df commit 8fdacb6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/time_evolution/time_evolution.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,33 +400,33 @@ function _ensemble_dispatch_prob_func(rng, ntraj, tlist, prob_func; kwargs...)
400400
end
401401

402402
function _ensemble_dispatch_solve(
403-
ens_prob_mc::TimeEvolutionProblem,
403+
ens_prob::TimeEvolutionProblem,
404404
alg::Union{<:OrdinaryDiffEqAlgorithm,<:StochasticDiffEqAlgorithm},
405405
ensemblealg::ET,
406406
ntraj::Int,
407407
) where {ET<:Union{EnsembleSplitThreads,EnsembleDistributed}}
408408
sol = nothing
409409

410410
@sync begin
411-
@async while take!(ens_prob_mc.kwargs.channel)
412-
next!(ens_prob_mc.kwargs.progr)
411+
@async while take!(ens_prob.kwargs.channel)
412+
next!(ens_prob.kwargs.progr)
413413
end
414414

415415
@async begin
416-
sol = solve(ens_prob_mc.prob, alg, ensemblealg, trajectories = ntraj)
417-
put!(ens_prob_mc.kwargs.channel, false)
416+
sol = solve(ens_prob.prob, alg, ensemblealg, trajectories = ntraj)
417+
put!(ens_prob.kwargs.channel, false)
418418
end
419419
end
420420

421421
return sol
422422
end
423423
function _ensemble_dispatch_solve(
424-
ens_prob_mc::TimeEvolutionProblem,
424+
ens_prob::TimeEvolutionProblem,
425425
alg::Union{<:OrdinaryDiffEqAlgorithm,<:StochasticDiffEqAlgorithm},
426426
ensemblealg,
427427
ntraj::Int,
428428
)
429-
sol = solve(ens_prob_mc.prob, alg, ensemblealg, trajectories = ntraj)
429+
sol = solve(ens_prob.prob, alg, ensemblealg, trajectories = ntraj)
430430
return sol
431431
end
432432

0 commit comments

Comments
 (0)