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

Adds CallbackCache #229

Merged
merged 1 commit into from
Jun 4, 2019
Merged

Adds CallbackCache #229

merged 1 commit into from
Jun 4, 2019

Conversation

kanav99
Copy link
Contributor

@kanav99 kanav99 commented Jun 4, 2019

To make all the callback's temporary registers come in one place, this PR introduces a new structure CallbackCache. Changes required in OrdinaryDiffEq are also made in the PR SciML/OrdinaryDiffEq.jl#754. I am also trying to convert next_sign and prev_sign to BitArray but it seems that handling Floating Point error is tricky with this. Also we need to handle the case when condition at time steps is zero differently.

@ChrisRackauckas ChrisRackauckas merged commit 0b2de6d into master Jun 4, 2019
@ChrisRackauckas ChrisRackauckas deleted the callback_cache branch June 4, 2019 21:05
prev_sign::signType
end

function CallbackCache(max_len,conditionType::Type,signType::Type)
Copy link
Member

Choose a reason for hiding this comment

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

It may need to be Type{conditionType}, Type{signType) where {conditionType,signType} to specialize

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.

None yet

2 participants