BlueBrain / nmodl

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

Fix POINTER variables. #1462

Closed 1uc closed 1 month ago

1uc commented 1 month ago

Both the MOD file and NEURON independently number the pointer variables; and then use their respective order to access the dparam array. In order to make the two match we must ensure that all pointer variables are consecutive in dparams and pass their offset, i.e. the index of the first POINTER variable, to {point,}_register_mech.