Skip to content

Stack overflow with ApproxFun type #130

@aml5600

Description

@aml5600

MWE:

using ApproxFun, OrdinaryDiffEq
Ω = -4..4
g = Fun(x->exp(-0.5*x^2), Ω)
fode!(du,u,p,t) = du[1] = u[1]' 
ode_prob = ODEProblem(fode!, [g], (0., 1.); saveat=0.1)
sol = solve(ode_prob, Tsit5())

causes

ERROR: LoadError: StackOverflowError:
Stacktrace:
 [1] recursive_unitless_bottom_eltype(::Type{Any}) at /Users//.julia/packages/RecursiveArrayTools/oacFD/src/utils.jl:86 (repeats 79984 times)

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