Skip to content

Commit

Permalink
ion style error (#685)
Browse files Browse the repository at this point in the history
nrn_wrote_conc was using the cinit slot rather than einit slot to
determine whether to re-initialize the reversal potential using the
nernst equation due to a change of concentation in the INITIAL block of
a mechanism that WRITE a concentation. (By default, the cinit and
einit slots have the same value but can differ if the user specified
an explicit ion_style.
  • Loading branch information
nrnhines committed Jul 29, 2020
1 parent 71eda9d commit a77db57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nrnoc/eion.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ double nrn_nernst(ci, co, z) double z, ci, co; {
}

void nrn_wrote_conc(sym, pe, it) Symbol* sym; double* pe; int it; {
if (it & 04) {
if (it & 040) {
pe[0] = nrn_nernst(pe[1], pe[2], nrn_ion_charge(sym));
}
}
Expand Down

0 comments on commit a77db57

Please sign in to comment.