From 0c018ebcd6a816134a74366980228542537c45c1 Mon Sep 17 00:00:00 2001 From: Pramod S Kumbhar Date: Mon, 23 May 2022 14:51:47 +0200 Subject: [PATCH] Avoid errors with STATE variables without DERIVATE block * In case of state variables without ODEs or SOLVE block we get errors like: V not really a STATE; Ie. No differential equation for it gNMDA not really a STATE; Ie. No differential equation for it * Not sure about the "desirable" fix here: - should we avoid declaring variables as STATE - use workaround of empty SOLVE block like this PR - have fix in neuron to avoid this as an error Tagging @nrnhines for this to discuss. --- izhi2007.mod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/izhi2007.mod b/izhi2007.mod index e1a5433..d177861 100644 --- a/izhi2007.mod +++ b/izhi2007.mod @@ -125,9 +125,11 @@ PROCEDURE useverbose() { : Create user-accessible function } +PROCEDURE states() {} : Define neuron dynamics BREAKPOINT { + SOLVE states delta = t-t0 : Find time difference : Receptor dynamics -- the correct form is gAMPA = gAMPA*exp(-delta/tauAMPA), but this is 30% slower and, in the end, not really any more physiologically realistic