diff --git a/validation/ref/numeric/HHChannels.jl b/validation/ref/numeric/HHChannels.jl index 8ce1bd993fb8aa2f86f68dc25e885a4e6e45c832..bf32c8e84ddafb0f32f23c94086ab23c1408d376 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