53 static Finfo* MgBlockFinfos[] =
65 "Author",
"Upinder S. Bhalla, 2007, NCBS",
66 "Description",
"MgBlock: Hodgkin-Huxley type voltage-gated Ion channel. Something "
67 "like the old tabchannel from GENESIS, but also presents "
68 "a similar interface as hhchan from GENESIS. ",
75 sizeof( MgBlockFinfos )/
sizeof(
Finfo *),
78 sizeof( doc ) /
sizeof(
string )
104 cout <<
"Error: KMg_A=" << KMg_A <<
" must be > 0. Not set.\n";
116 cout <<
"Error: KMg_B=" << KMg_B <<
" must be > 0. Not set.\n";
128 cout <<
"Error: CMg = " << CMg <<
" must be > 0. Not set.\n";
167 cout <<
"Error: MgBlock::innerReinitFunc: fields KMg_A, KMg_B, CMg\nmust be greater than zero. Resetting to 1 to avoid numerical errors\n";
void vProcess(const Eref &e, ProcPtr p)
static const Cinfo * MgBlockCinfo
void setEk(const Eref &e, double Ek)
void origChannel(const Eref &e, double Gk, double Ek)
void setGk(const Eref &e, double Gk)
double Vm_
Vm_ is input variable from compartment, used for most rates.
void vReinit(const Eref &e, ProcPtr p)
void setKMg_A(double Gbar)
void sendReinitMsgs(const Eref &e, const ProcPtr info)
void sendProcessMsgs(const Eref &e, const ProcPtr info)
static const Cinfo * initCinfo()
Specify the Class Info static variable for initialization.
static const Cinfo * initCinfo()