Skip to content

[BUG] Fixed step may cause integrator to fail silently #277

Open
@jon-wurtz

Description

@jon-wurtz

Describe the bug
When the time step of an integration is fixed, eg by choosing some small number of time steps for some total evolution time, the integration appears to fail by returning the wrong wavefunction at long times. Crucially, it does so silently without throwing any errors. A fix would be to check the integrator status (eg status(integrator)==True) or to adaptively choose a smaller step if needed.

To Reproduce
In https://github.com/Happy-Diode/Bloqade.jl/blob/master/examples/ring/main.jl reduce nsteps by factors of two until integration obviously fails

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