The entrypoints into the MOD file from NEURON typically require setting up some variable, e.g. _lmr, inst, node_data, _thread_vars, etc.
The code has roughly two favours:
From fully initialized NEURON, i.e. a Memb_list exists and the model is sorted. All the compute function have this type of entrypoint.
From a Prop. Usually this happens when we don't know that the model is sorted, or that initialization has happened. The HOC/Python bindings of FUNCTION/PROCEDUREs use this type of entrypoint.
The entrypoints into the MOD file from NEURON typically require setting up some variable, e.g.
_lmr
,inst
,node_data
,_thread_vars
, etc.The code has roughly two favours:
From fully initialized NEURON, i.e. a Memb_list exists and the model is sorted. All the compute function have this type of entrypoint.
From a
Prop
. Usually this happens when we don't know that the model is sorted, or that initialization has happened. The HOC/Python bindings of FUNCTION/PROCEDUREs use this type of entrypoint.