Possible bug in loadbal.hoc

Suggestions for improvements to the NEURON Forum.
Post Reply
Posts: 5
Joined: Fri Nov 02, 2012 11:05 am

Possible bug in loadbal.hoc

Post by hhshih »

Recently when I tried to use loadbal.hoc,
I found that sometimes there will be a "subscript index out of range" error.

After testing the loadbal.hoc, I found that near line 450

Code: Select all

 if (j == 0 && ionindices.x[k] > 0){ 
should be changed to

Code: Select all

 if (j == 0) if (ionindices.x[k] > 0){ 
to prevent this error.

I did not find any post talking about this, so I just post it.
Site Admin
Posts: 1619
Joined: Wed May 18, 2005 3:32 pm

Re: Possible bug in loadbal.hoc

Post by hines »

Thanks. Your fix is now part of the repository version.
http://www.neuron.yale.edu/hg/neuron/nr ... c986944d4f
Post Reply