Skip to content

Commit

Permalink
USEION variable can not be initialized in a CONSTANT block. (#1)
Browse files Browse the repository at this point in the history
* USEION variable can not be initialized in a CONSTANT block.

See neuronsimulator/nrn#1955.

* cdp5.mod

---------

Co-authored-by: Alexandru Săvulescu <alexandru.savulescu@epfl.ch>
  • Loading branch information
pramodk and alexsavulescu authored Jan 30, 2023
1 parent 1a79e0c commit 3548e45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ReadMe.htm
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@
analysis of dendritic Ca2+ kinetics in rodent Purkinje cells: role of
parvalbumin and calbindin D28k. J Physiol 551:13-32

<b>Changelog</b>

cdp3.mod and cdp5.mod are updated due to issue mentioned in https://github.com/neuronsimulator/nrn/pull/1955.
CONSTANT block has no effect in the initialization of ion variables.

3 changes: 2 additions & 1 deletion cdp3.mod
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ ASSIGNED {
: ica_pmp_last (mA/cm2)
parea (um) : pump area per unit length
cai (mM)
cao (mM)
mgi (mM)
vrat[Nannuli] (1) : dimensionless
: numeric value of vrat[i] equals the volume
Expand All @@ -103,7 +104,7 @@ ASSIGNED {

}

CONSTANT { cao = 2 (mM) }
: CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
Expand Down
3 changes: 2 additions & 1 deletion cdp5.mod
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ ASSIGNED {
parea (um) : pump area per unit length
parea2 (um)
cai (mM)
cao (mM)
mgi (mM)
vrat (1)
}

CONSTANT { cao = 2 (mM) }
: CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
Expand Down

0 comments on commit 3548e45

Please sign in to comment.