ted wrote:OK. How are you doing this? There are still lots of "insert" statements in your hoc code.
From lines 235-284:
I commented out the "for" loop so that when I move past one dendrite (apical[0]), I can loop it from 0 to 1, 0 to 2, etc.
At last! Useful error messages from hoc!
Code: Select all
na_ion mechanism not inserted in section apical[1]
If a mechanism is inserted into a section that contains a USEION x statement that WRITEs or READs the ionic current ix or the intra- or extracellular concentrations xi or xo of that ion, NEURON automatically inserts a "helper" mechanism called x_ion. The particular error message you're getting means that some statement is trying to access nai or nao in a section called apical[1] but that section no longer has such a mechanism because you removed some other mechanism that WRITEs or READs nai or nao in that section.
The strange thing is, though, that I don't address apical[1] at all in my code apart from lines 243-249:
I thought it might be lines 309-319 (line 311 in particular):
but after commenting it out, I found that such was not the case.
Code: Select all
oc>nrniv: runcIV undefined function
This error message means your code has a statement that refers to a procedure or function called runcIV, but you haven't provided code to define runcIV.
I defined runcIV() at the end of my code in lines 346-360, though:
It seems like NEURON is ignoring the init() proc, as line 320 is where that, advance() and runcIV() are defined in the code.