Skip to content

Commit 0a4db77

Browse files
Improve time_steps calculation code
Better handling of zero and vector creation Co-authored-by: Matt Fishman <[email protected]>
1 parent 3f7442f commit 0a4db77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/applyexp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function applyexp(
7171
sweep_printer=applyexp_sweep_printer,
7272
kws...,
7373
)
74-
time_steps = diff([0.0, exponents...])[2:end]
74+
time_steps = diff([zero(eltype(exponents)); exponents])[2:end]
7575
sweep_kws = (;
7676
outputlevel, extracter_kwargs, inserter_kwargs, nsites, tdvp_order, updater_kwargs
7777
)

0 commit comments

Comments
 (0)