Skip to content

Commit

Permalink
T2_huguenard.mod& IT_wang.mod: replace adams solver with euler
Browse files Browse the repository at this point in the history
passiv.mod: drop INDEPENDENT block for v
Required for upcoming NEURON 9.0.0
  • Loading branch information
alexsavulescu committed Dec 14, 2022
1 parent 0faff42 commit 5d4ab0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion IT2_huguenard.mod
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ASSIGNED {
}

BREAKPOINT {
SOLVE castate METHOD adams
SOLVE castate METHOD euler
carev = (1e3) * (R*(celsius+273.15))/(2*FARADAY) * log (cao/cai)
ica = gcabar * m*m*h * (v-carev)
}
Expand Down
2 changes: 1 addition & 1 deletion IT_wang.mod
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ASSIGNED {
}

BREAKPOINT {
SOLVE states METHOD adams
SOLVE states METHOD euler
carev = (1e3) * (R*(celsius+273.15))/(2*FARADAY) * log (cao/cai)
ica = gcabar * m*m*m*h * (v - carev)
}
Expand Down
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ Changelog
---------
2022-05: Updated MOD files to contain valid C++ and be compatible
with the upcoming versions 8.2 and 9.0 of NEURON.
2022-12: IT2_huguenard.mod& IT_wang.mod: replace adams solver with euler
passiv.mod: drop INDEPENDENT block for v
Required for upcoming NEURON 9.0.0
7 changes: 4 additions & 3 deletions passiv.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ UNITS {
(mA) = (milliamp)
}

INDEPENDENT { v FROM -100 TO 50 WITH 50 (mV) }

NEURON {
SUFFIX Pass
NONSPECIFIC_CURRENT i
Expand All @@ -19,7 +17,10 @@ PARAMETER {
erev = -70 (mV)
}

ASSIGNED { i (mA/cm2)}
ASSIGNED {
i (mA/cm2)
v (mV)
}

BREAKPOINT {
i = g*(v - erev)
Expand Down

0 comments on commit 5d4ab0d

Please # to comment.