Skip to content

Not able to update initial conditions and stop time of Lorenz example #6

@HildingElmqvist

Description

@HildingElmqvist

I wanted to allow for changing stop time and initial conditions in the Lorenz example. However, when adding the following code to the update function, I get trouble when updating integ:
`

prob = ODEProblem{true, SciMLBase.FullSpecialize}(lorenz!, u0, (0.0, stop), p) 

integ = init(prob, Tsit5(), dense = true)`

The error message in the browser is:
`

lorenz.wasm:0xd7 Uncaught RuntimeError: unreachable

at lorenz.wasm:0xd7

at run ((index):76:16)

at async (index):78:15`

Is there some other way of changing initial conditions and stop time which does not imply updating the global variable integ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions