Skip to content

Commit b615f9c

Browse files
Change name to standard output function
1 parent 0950d29 commit b615f9c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/time_evolution/sesolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function sesolve_map(
210210
)
211211

212212
# generate and solve ensemble problem
213-
_output_func = _ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _dummy_output_func) # setup global progress bar
213+
_output_func = _ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _standard_output_func) # setup global progress bar
214214
ens_prob = TimeEvolutionProblem(
215215
EnsembleProblem(
216216
prob.prob,

src/time_evolution/smesolve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ function smesolveEnsembleProblem(
250250
store_measurement = makeVal(store_measurement),
251251
) : prob_func
252252
_output_func =
253-
output_func isa Nothing ? _ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _dummy_output_func) :
254-
output_func
253+
output_func isa Nothing ?
254+
_ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _standard_output_func) : output_func
255255

256256
prob_sme = smesolveProblem(
257257
H,

src/time_evolution/ssesolve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ function ssesolveEnsembleProblem(
244244
store_measurement = makeVal(store_measurement),
245245
) : prob_func
246246
_output_func =
247-
output_func isa Nothing ? _ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _dummy_output_func) :
248-
output_func
247+
output_func isa Nothing ?
248+
_ensemble_dispatch_output_func(ensemblealg, progress_bar, ntraj, _standard_output_func) : output_func
249249

250250
prob_sme = ssesolveProblem(
251251
H,

src/time_evolution/time_evolution.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ function _stochastic_prob_func(prob, i, repeat, rng, seeds, tlist; kwargs...)
452452
return remake(prob.prob, noise = noise, seed = seed)
453453
end
454454

455-
# a dummy output function which does nothing (used for mapped and stochastic solvers)
456-
_dummy_output_func(sol, i) = (sol, false)
455+
# Standard output function which does nothing (used for mapped and stochastic solvers)
456+
_standard_output_func(sol, i) = (sol, false)
457457

458458
#=
459459
Define diagonal or non-diagonal noise depending on the type of `sc_ops`.

0 commit comments

Comments
 (0)