Page 1 of 1

Possible bug in loadbal.hoc

Posted: Mon Nov 12, 2012 11:52 am
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.

Re: Possible bug in loadbal.hoc

Posted: Mon Nov 12, 2012 4:12 pm
by hines
Thanks. Your fix is now part of the repository version.
http://www.neuron.yale.edu/hg/neuron/nr ... c986944d4f