Some mod files define LOCAL variables in the top level of the file (for example https://github.com/Neurosim-lab/netpyne/blob/development/examples/M1detailed/mod/kapcb.mod). It seems that the value of these variables are not passed properly in CoreNEURON. Before the psolve-direct changes the variable in the above example was initialized in CoreNEURON through the INITIAL block, however now this isn't the case and the variable has a wrong variable during simulation.
Expected result/behavior
Top level LOCAL variables should be properly transferred from NEURON or initialized on CoreNEURON.
NEURON setup
Version: master branch
Installation method: cmake build
OS + Version: RedHat
Compiler + Version: Intel
Minimal working example - MWE
git clone -b pramodk/coreneuron-compatibility-m1 git@github.com:Neurosim-lab/netpyne.git
cd netpyne
export PYTHONPATH=$pwd:$PYTHONPATH
cd examples/M1detailed
vim cfg.py # enable coreneuron
nrnivmodl -coreneuron mod
mpirun special -mpi -python init.py
Context
Overview of the issue
Some mod files define
LOCAL
variables in the top level of the file (for example https://github.com/Neurosim-lab/netpyne/blob/development/examples/M1detailed/mod/kapcb.mod). It seems that the value of these variables are not passed properly inCoreNEURON
. Before thepsolve-direct
changes the variable in the above example was initialized in CoreNEURON through theINITIAL
block, however now this isn't the case and the variable has a wrong variable during simulation.Expected result/behavior
Top level
LOCAL
variables should be properly transferred fromNEURON
or initialized onCoreNEURON
.NEURON setup
Minimal working example - MWE
Logs
gdb
output ofCoreNEURON
execution:_zqt
is the macro for_thread[0]._pval[0]
gdb
output of theqt
variable during initialization inNEURON
: