Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix remaining allocations in PresetTimeCallback #218

Merged

Conversation

oscardssmith
Copy link
Contributor

@oscardssmith oscardssmith commented Apr 29, 2024

I was missing a let that was causing tstops to be captured by the condition closure. Fixes #217. We now get

julia> @time solve(prob, Tsit5(), callback=callback);
  0.000988 seconds (95 allocations: 44.703 KiB)

where all the additional allocations are in the init stage.

@ChrisRackauckas ChrisRackauckas merged commit afff8e3 into SciML:master Apr 29, 2024
8 of 10 checks passed
@oscardssmith oscardssmith deleted the os/preset-time-allocations-redux branch April 29, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory allocations (Still) of PresetTimeCallback after v3.2.0
2 participants