Skip to content

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

Closed
1uc wants to merge 5 commits into
mainfrom
nmodl-1260
Closed

References for 'https://github.com/BlueBrain/nmodl/pull/1260'.#18
1uc wants to merge 5 commits into
mainfrom
nmodl-1260

Conversation

@1uc

@1uc 1uc commented May 14, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread nonspecific_current/neuron/leonhard.cpp Outdated


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
Copy Markdown
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.

Comment thread nonspecific_current/neuron/leonhard.cpp Outdated
auto* _thread = _ml_arg->_thread;
auto* _ppvar = _ml_arg->pdata[id];
double current = 0.0;
func_leonhard(_ml, inst, id, _ppvar, _thread, _nt);

Copy link
Copy Markdown
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).

@1uc 1uc closed this Aug 23, 2024
@1uc 1uc deleted the nmodl-1260 branch August 23, 2024 07:04
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