From 5dc98801dbbd4567688f6aa7e1c7c08e63a4400a Mon Sep 17 00:00:00 2001 From: clinssen Date: Wed, 27 May 2020 20:09:11 +0200 Subject: [PATCH 1/3] fix Izhikevich model initial conditions --- models/izhikevich.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/izhikevich.cpp b/models/izhikevich.cpp index 75aa094ee2..d2a8cb06e7 100644 --- a/models/izhikevich.cpp +++ b/models/izhikevich.cpp @@ -78,8 +78,8 @@ nest::izhikevich::Parameters_::Parameters_() } nest::izhikevich::State_::State_() - : v_( -65.0 ) // membrane potential - , u_( 0.0 ) // membrane recovery variable + : v_( -70.0 ) // membrane potential + , u_( 0.2 * -70.0 ) // membrane recovery variable (b * V_m_init) , I_( 0.0 ) // input current { } From c8cbd93b16b7e103ce0199e3ca40a45084da424a Mon Sep 17 00:00:00 2001 From: clinssen Date: Wed, 27 May 2020 22:37:38 +0200 Subject: [PATCH 2/3] reformat comments for clang format --- models/izhikevich.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/izhikevich.cpp b/models/izhikevich.cpp index d2a8cb06e7..55962e058d 100644 --- a/models/izhikevich.cpp +++ b/models/izhikevich.cpp @@ -78,9 +78,9 @@ nest::izhikevich::Parameters_::Parameters_() } nest::izhikevich::State_::State_() - : v_( -70.0 ) // membrane potential - , u_( 0.2 * -70.0 ) // membrane recovery variable (b * V_m_init) - , I_( 0.0 ) // input current + : v_( -70.0 ) // membrane potential + , u_( 0.2 * -70.0 ) // membrane recovery variable (b * V_m_init) + , I_( 0.0 ) // input current { } From aa9df2a0c0e574767017026228f699b5ca43af9e Mon Sep 17 00:00:00 2001 From: clinssen Date: Tue, 30 Jun 2020 10:51:59 +0200 Subject: [PATCH 3/3] change initial V_m to -65 to match original publication --- models/izhikevich.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/izhikevich.cpp b/models/izhikevich.cpp index 55962e058d..1721b285b2 100644 --- a/models/izhikevich.cpp +++ b/models/izhikevich.cpp @@ -78,8 +78,8 @@ nest::izhikevich::Parameters_::Parameters_() } nest::izhikevich::State_::State_() - : v_( -70.0 ) // membrane potential - , u_( 0.2 * -70.0 ) // membrane recovery variable (b * V_m_init) + : v_( -65.0 ) // membrane potential + , u_( 0.2 * -65.0 ) // membrane recovery variable (b * V_m_init) , I_( 0.0 ) // input current { }