Possible bug in loadbal.hoc

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

Possible bug in loadbal.hoc

Post by hhshih » Mon Nov 12, 2012 11:52 am

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.

hines
Site Admin
Posts: 1449
Joined: Wed May 18, 2005 3:32 pm

Re: Possible bug in loadbal.hoc

Post by hines » Mon Nov 12, 2012 4:12 pm

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

Post Reply