Skip to content

Commit

Permalink
Fix: wromg auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Oct 26, 2024
1 parent d91edcb commit 382d506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/TimeEvolution/ODEProblem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using OrdinaryDiffEqTsit5: ODEProblem, solve, ODESolution
eom::HarmonicEquation;
fixed_parameters,
u0::Vector,
sweep::ParameterSweep,
sweep::AdiabaticSweep,
timespan::Tuple
)
Expand All @@ -16,7 +16,7 @@ If `u0` is specified, it is used as an initial condition; otherwise the values f
function OrdinaryDiffEqTsit5.ODEProblem(
eom::HarmonicEquation,
fixed_parameters;
sweep::ParameterSweep=ParameterSweep(),
sweep::AdiabaticSweep=AdiabaticSweep(),
u0::Vector=[],
timespan::Tuple,
perturb_initial=0.0,
Expand Down
2 changes: 1 addition & 1 deletion test/time_evolution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ varied = ω => range(0.9, 1.1, 10)
res = get_steady_states(p, varied, fixed; show_progress=false, seed=SEED)

tspan = (0.0, 10)
sweep = ParameterSweep=> (0.9, 1.1), tspan) # linearly interpolate between two values at two times
sweep = AdiabaticSweep=> (0.9, 1.1), tspan) # linearly interpolate between two values at two times
ode_problem = ODEProblem(harmonic_eq, fixed; sweep=sweep, u0=[0.01; 0.0], timespan=tspan)
time_soln = solve(ode_problem, Tsit5(); saveat=1);

Expand Down

0 comments on commit 382d506

Please sign in to comment.