vector element differs for constant or variable index
Posted: Thu Nov 04, 2010 11:39 am
I also am having a problem with inconsistent data values, in my case in a hoc program designed to calculate motor unit force following a train of spikes. The program seems to run fine, but when I use a very long spike train, the force exhibits anomalous blips. While debugging this I found NEURON to be in a very strange state in which the value of a vector was inconsistent, depending on whether the index was specified by a constant or by a variable assigned the value of the constant:
oc>ii
82669
oc>trainforce.x[82669]
0
oc>trainforce.x[ii]
9.0028106
The problem occurs on a WIndows 7 64-bit system running NEURON 7.2, and also on a WIndows XP pro system running NEURON 7.2; it does not occur on my macbook running OSX 10.5.8, on NEURON 7.0.
oc>ii
82669
oc>trainforce.x[82669]
0
oc>trainforce.x[ii]
9.0028106
The problem occurs on a WIndows 7 64-bit system running NEURON 7.2, and also on a WIndows XP pro system running NEURON 7.2; it does not occur on my macbook running OSX 10.5.8, on NEURON 7.0.