Highest bit in ion_style

Anything that doesn't fit elsewhere.
Post Reply
porio

Highest bit in ion_style

Post 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.
hines
Site Admin
Posts: 1710
Joined: Wed May 18, 2005 3:32 pm

Post 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.
porio

Post by porio »

clear as water.
Thanks!
Post Reply