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

add integrator accessors for dispatch purposes #1071

Merged
merged 9 commits into from
Aug 18, 2024

Conversation

isaacsas
Copy link
Member

@isaacsas isaacsas commented Aug 12, 2024

This is needed for SciML/DiffEqCallbacks.jl#229, but shouldn't get merged until we are settled that SciML/DiffEqCallbacks.jl#229 has the correct approach (and doesn't need changes here).

@isaacsas isaacsas changed the title add integrator accessors for dispatch purposes [WIP] add integrator accessors for dispatch purposes Aug 12, 2024
Comment on lines 4 to 5
# returns if the given integrator has an integ.iter field
hasiter(integ) = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hasfield and hasproperty work at compile time though, so I'm not sure if this one is the most essential?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I wasn’t sure about if hasfield is compile time, but since it is I can drop this.

@isaacsas isaacsas changed the title [WIP] add integrator accessors for dispatch purposes add integrator accessors for dispatch purposes Aug 13, 2024
@isaacsas
Copy link
Member Author

isaacsas commented Aug 13, 2024

OK, I think this is good to go along with the followup PRs

as far as I can tell ODEInterfaceDiffEq doesn't support tstops so I don't think this API can be defined for it.

@isaacsas
Copy link
Member Author

Format failures seem to be in other files so can be handled in a separate PR.

src/solve.jl Outdated Show resolved Hide resolved
@isaacsas
Copy link
Member Author

I removed the alias keyword.

@ChrisRackauckas ChrisRackauckas merged commit e27e745 into SciML:master Aug 18, 2024
24 of 38 checks passed
@isaacsas isaacsas deleted the tstop_api_funs branch August 18, 2024 14:31
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.

2 participants