Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Ion variables can not be set via CONSTANT block (compatibility with u…
Browse files Browse the repository at this point in the history
…pcoming neuron release) (#6)

* Ion variables can not be set via CONSTANT block (upcoming neuron release)

* Setting ionic variable like `cao`` in CONSTANT block had no effect
  See neuronsimulator/nrn#1955
* This will be an error in future neuron v9 and with the latest
  neuron-nightly pypi package.
* As setting cao from MOD file had no effect, simply uncomment this (?)

* fix missing declaration of cao and remove CONSTANT block
  • Loading branch information
pramodk authored Sep 23, 2022
1 parent c4386fe commit 4edbf97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ ASSIGNED {
parea (um) : pump area per unit length
parea2 (um)
cai (mM)
cao (mM)
mgi (mM)
vrat (1)
}

CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
: ca[] are very small, so specify absolute tolerance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,14 @@ ASSIGNED {
parea (um) : pump area per unit length
parea2 (um)
cai (mM)
cao (mM)
mgi (mM)
vrat (1)
nr2ai (mM)
nr2bi (mM)
icazz (nA)
}

CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
: ca[] are very small, so specify absolute tolerance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,12 @@ ASSIGNED {
parea (um) : pump area per unit length
parea2 (um)
cai (mM)
cao (mM)
mgi (mM)
vrat (1)
icazz (nA)
}

CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
: ca[] are very small, so specify absolute tolerance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,11 @@ ASSIGNED {
parea (um) : pump area per unit length
parea2 (um)
cai (mM)
cao (mM)
mgi (mM)
vrat (1)
}

CONSTANT { cao = 2 (mM) }

STATE {
: ca[0] is equivalent to cai
: ca[] are very small, so specify absolute tolerance
Expand Down Expand Up @@ -304,4 +303,4 @@ FUNCTION ssDMNPE() (mM) {

FUNCTION ssDMNPEca() (mM) {
ssDMNPEca = DMNPEnull/(1+(c2/(c1*cainull)))
}
}

0 comments on commit 4edbf97

Please sign in to comment.