From 84ec4f53c7d03a9879eec2fe68220616e900483f Mon Sep 17 00:00:00 2001 From: Sam Yates <halfflat@gmail.com> Date: Wed, 26 Oct 2016 16:05:22 +0200 Subject: [PATCH] Use name `i_e` for Stim current density --- validation/ref/numeric/HHChannels.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validation/ref/numeric/HHChannels.jl b/validation/ref/numeric/HHChannels.jl index 8ce1bd99..bf32c8e8 100644 --- a/validation/ref/numeric/HHChannels.jl +++ b/validation/ref/numeric/HHChannels.jl @@ -35,10 +35,10 @@ end immutable Stim t0 # start time of stimulus t1 # stop time of stimulus - j # stimulus current density + i_e # stimulus current density Stim() = new(0s, 0s, 0A/m^2) - Stim(t0, t1, j) = new(t0, t1, j) + Stim(t0, t1, i_e) = new(t0, t1, i_e) end vtrap(x,y) = x/(exp(x/y) - 1.0) @@ -101,7 +101,7 @@ function f(t, state; p=HHParam(), stim=Stim()) # calculate current density due to stimulus if t>=stim.t0 && t<stim.t1 - itot -= stim.j + itot -= stim.i_e end # calculate the voltage dependent rates for the gating variables -- GitLab