Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

saveat begin time #744

@ArnoStrouwen

Description

@ArnoStrouwen

Should it work like this?

using OrdinaryDiffEq
f(u,p,t) = 1.01*u
u0 = 1/2
tspan = (0.0,1.0)
prob = ODEProblem(f,u0,tspan)
sol = solve(prob, Tsit5(), saveat=[0.0,0.0,0.5,0.5,1.0,1.0])
println(sol.t)
[0.0, 0.5, 0.5, 1.0, 1.0] # why no dubbel 0.0 like the others?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions