Hi Gustavo,
Thank you for sharing the code.
I looked at the generated code and found that there is indeed a bug in NESTML for this
particular case where the equation has a numeric solver and refers to a spiking input
port. I have created an issue for this:
https://github.com/nest/nestml/issues/900
While we fix this issue, could I ask you to make a small change in the generated code? In
the file izhikevich_ODE.cpp, please replace the line 315 with the below code:
f[State_::SS] = (-0.001) * ode_state[State_::SS] / node.P_.tau + 0.001 * node.P_.S_jump *
node.B_.spike_inputs_grid_sum_[izhikevich_ODE::SPIKES -
izhikevich_ODE::MIN_SPIKE_RECEPTOR] / node.P_.N;
After this, compile the code by going into the target directory and running make and make
install.
Please note that it would take some time for us to fix this and apologize for the
inconvenience.
I hope this fix helps!
Thanks,
Pooja
On 7. May 2023, at 20:01, Gustavo Patow
<gustavo.patow(a)udg.edu> wrote:
Dear Pooja,
The nestml file is this one (direct link):
https://www.dropbox.com/s/esj5ngyjkui0024/izhikevich_ODE.nestml?dl=0
And the contents of /tmp/nestml-component/ is in the following zip file:
https://www.dropbox.com/s/u10ivrs6y3v1pyr/nestml-component.zip?dl=0
I am sorry of this is not what you asked for, as I said, I am too newbie in
nest/nestml...
best
gus.-
--
Prof. Dr. Gustavo A. PATOW
ViRVIG-UdG and CNS-UPF
Edifici P-IV, Campus Montilivi,
Universitat de Girona,
17003 Girona, SPAIN
http://imae.udg.edu/~dagush/
_______________________________________________
NEST Users mailing list -- users(a)nest-simulator.org
To unsubscribe send an email to users-leave(a)nest-simulator.org