Skip to content

Change in result of vec(sol) in 0.7 as compared to 0.6. #38

Description

@Vaibhavdixit02

The way vec is dealing with ODESolution seems to have changed.

f1 = @ode_def LotkaVolterraTest begin
  dx = a*x - x*y
  dy = -3y + x*y
end a
u0 = [1.0;1.0]
tspan = (0.0,10.0)
p = [1.5]
prob1 = ODEProblem(f1,u0,tspan,[1.5])
t = collect(range(0, stop=10, length=200))
sol = solve(prob1,Tsit5();saveat=t,save_everystep=false,dense=false,kwargs...)
vec(sol)

Gives an array of length 200 and does not unwrap the 2-element arrays as it should (and gave in 0.6).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions