This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Support (/ Fix) code generation with Artificial cells for NEURON simulator #1353
Labels
NEURON codegen
Work toward NEURON code generation
Overview of the issue
When testing the ringtest model with NMODL as transpiler for NEURON, I see that the spikes are not generated.
Expected result/behavior
Spike results between nmodl and nocmodl transpiler should be the same
Setup
Minimal working example
Model Repisotiry
I applied below patch so that it's easy to test nocmodl and nmodl:
In order to test like the above, I created a copy of netstim.mod:
Build mod files:
<nrn-install>/bin/nrnivmodl -nmodl <nrn-install>/bin/nmodl mod/
Check the spikes between nocmodl and nmodl:
vs
i.e.
688
spikes ve0
Preliminary Investigation
Yesterday I was quickly looking through the generated code and I noticed the following. Maybe separate issues for each of these might be better (?):
- e.g. stream allocation in
nrn_alloc()
is missingartcell_net_send()
instead ofnet_send()
mechname_reg()
missing call toadd_nrn_has_net_event(mech_type)
(I might be missing a few other aspects, which I will add here if I see/remember but you can easily see these as stimulus is not working)
The text was updated successfully, but these errors were encountered: