Skip to content

Silently fails with Sundials #53

@marius311

Description

@marius311

It looks like if you use ComponentArrays with Sundials, it "succeeds" but the solution is wrong, eg here it doesn't move from the initial value even though the answer should be e.

julia> using DiffEqBase, Sundials, ComponentArrays

julia> prob = ODEProblem((u,p,t)->u, ComponentArray(x=ones(10)), (0.,1.));

julia> sol = solve(prob, CVODE_BDF(linear_solver=:BCG), reltol=1e-3);

julia> sol(1)
ComponentVector{Float64}(x = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])

This is Julia 1.5.2, ComponentArrays v0.8.7, and Sundials v4.2.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions