BlueBrain / nmodl

Code Generation Framework For NEURON MODeling Language
https://bluebrain.github.io/nmodl/
Apache License 2.0
52 stars 15 forks source link

Review setting/getting parameters. #1168

Closed 1uc closed 6 months ago

1uc commented 6 months ago

The suspicion is that it'll always retrieve the value for id = 0. The relevant generated code is: https://github.com/BlueBrain/nmodl-references/blob/86ea3be28505f69fe6073498fc995c61f493326d/func_proc_pnt/neuron/func_proc_pnt.cpp#L194-L199

https://github.com/BlueBrain/nmodl-references/blob/86ea3be28505f69fe6073498fc995c61f493326d/func_proc_pnt/neuron/func_proc_pnt.cpp#L243-L248

Test by using a range variable and create more than one segment to test several.

1uc commented 6 months ago

The pointers are set such that id == 0 is correct. Tests added here #1182.