Page 1 of 1

Highest bit in ion_style

Posted: Tue Jan 30, 2007 6:25 am
by porio
Hi,

Playing around with the ion_style command, I found that for certain simulation the ion_style for ca_ion was set as 247.
According to the documentation (http://www.neuron.yale.edu/neuron/stati ... #ion_style), I was expecting it to be 119 (3,2,1,1,1). As 247 = 119 + 128, the highest bit (128) was also set to 1, but this bit is not referred at all in the help files. What is its meaning (if any)?

Thanks.

Posted: Tue Jan 30, 2007 11:04 am
by hines
The underlying bitmap is

Code: Select all

03      concentration unused, CONST, DEP, STATE
04      initialize concentrations
030     reversal potential unused, CONST, DEP, STATE
040     initialize reversal potential
0100    calc reversal during fadvance
0200    ci being written by a model
0400    co being written by a model
So the documentation needs to be fixed to read:
The oldstyle value is previous internal setting of c_style + 4*cinit + 8*e_style + 32*einit + 64*eadvance + 128*ciwrite + 256*cowrite
with the proviso that the last two bits cannot be set by the user, or else I need to change the code so that the high two bits are masked out.

Posted: Tue Jan 30, 2007 12:43 pm
by porio
clear as water.
Thanks!