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

References for 'https://github.com/BlueBrain/nmodl/pull/1260'. #18

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented May 14, 2024

No description provided.

@@ -190,8 +324,15 @@ namespace neuron {
}


inline double nrn_current_leonhard(size_t id, leonhard_Instance& inst, leonhard_NodeData& node_data, double v) {
inline double nrn_current_leonhard(_nrn_model_sorted_token const& _sorted_token, NrnThread* _nt, Memb_list* _ml_arg, int _type, size_t id, leonhard_Instance& inst, leonhard_NodeData& node_data, double v) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting up _lmr should happen outside the loop. nrn_current_* is a function that's only called in the loop body of nrn_cur_*.

It might be better to pass it in.

double current = 0.0;
func_leonhard(_ml, inst, id, _ppvar, _thread, _nt);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This seems to be a sensible set of stuff to also pass into nrn_current_leonhard:

_ml, inst, id, _ppvar, _thread, _nt

(plus specific things).

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