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

Handle voltage via instance specific copy. #1532

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Handle voltage via instance specific copy. #1532

merged 3 commits into from
Oct 29, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Oct 25, 2024

In NOCMODL, the voltage is (when vectorized) handled via an instance specific copy. While in CoreNEURON, this is never done, which why the field is named v_unused.

This PR always uses v_unused. The reason we can't (easily) use the CoreNEURON variation is because sometimes, e.g. CVODE we need to register callbacks, those callbacks have a fixed signature, we can't simply pass through the voltage as an argument, instead we need to retrieve it, e.g. from the instance data.

@1uc 1uc marked this pull request as ready for review October 28, 2024 12:23
@1uc 1uc merged commit 31a6c48 into master Oct 29, 2024
12 checks passed
@1uc 1uc deleted the 1uc/voltage branch October 29, 2024 13:56
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