Skip to content

Function redefinition problem #119

@antoine-levitt

Description

@antoine-levitt

Hi,

using DifferentialEquations

function f(t,u)
    print(u)
    u
end

u0 = 1.0
prob = ODEProblem(f,u0,(0.0,1.0))
solve(prob)

include() this file once, redefine f by commenting out the print(), include it again, the print() still gets called. What's going on here?

julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)

DifferentialEquations.jl commit 0e86aab

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