Dear Pooka,
Well, I tried this before, and I got a compilation error. Basically,
I wrote:
SS' = (-SS/tau + S_jump/N * spikes) /s #remove the units (seconds)
input:
spikes real <- spike
Then, I got the error with message:
/tmp/nestml-component/izhikevich_ODE.cpp:315:124: error: ‘SPIKES’ was
not declared in this scope
315 | f[State_::SS] = (-0.001) * ode_state[State_::SS] /
node.P_.tau + 0.001 * node.P_.S_jump *
node.B_.spike_inputs_grid_sum_[SPIKES - MIN_SPIKE_RECEPTOR] / node.P_.N;
| ^~~~~~
/tmp/nestml-component/izhikevich_ODE.cpp:315:133: error:
‘MIN_SPIKE_RECEPTOR’ was not declared in this scope
315 | f[State_::SS] = (-0.001) * ode_state[State_::SS] /
node.P_.tau + 0.001 * node.P_.S_jump *
node.B_.spike_inputs_grid_sum_[SPIKES - MIN_SPIKE_RECEPTOR] / node.P_.N;
| ^~~~~~~~~~~~~~~~~~
Any ideas?
THANKS!!!
gus.-