Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

ode45 hangs on backwards integration #104

@crbinz

Description

@crbinz

Hello,

I came across this issue (recreated here using example code):

julia> using ODE

julia> function f(t, y)
           # Extract the components of the y vector
           (x, v) = y

           # Our system of differential equations
           x_prime = v
           v_prime = -x

           # Return the derivatives as a vector
           [x_prime; v_prime]
       end;

julia> # Initial condtions -- x(0) and x'(0)
       const start = [0.0; 0.1]
WARNING: redefining constant start
2-element Array{Float64,1}:
 0.0
 0.1

julia> time = 0.:-.1:-4pi;

julia> t, y = ode45(f, start, time);

This hangs for a long time (I've waited up to a minute before killing it).

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