Cannot use continuous play with Dt?
Posted: Thu Jun 27, 2013 11:49 am
Hi,
The following simple code is giving me a Segmentation fault at init():
However if I add/replace the following lines, there is no problem:
Why can't I do continuous play with a Dt? Oh, and the code gives no problem using celsiusvec.play(&celsius, 1000,0)
I'm using Neuron 7.3 on Ubuntu 13.04
Regards.
The following simple code is giving me a Segmentation fault at init():
Code: Select all
load_file("nrngui.hoc")
create soma
access soma
insert hh
objref celsiusvec,timevec
celsiusvec=new Vector(10)
celsiusvec.fill(20)
for (i=0;i<=8;i=i+2) {celsiusvec.x[i]=18}
tstop = celsiusvec.size()*1000
celsiusvec.play(&celsius, 1000,1)
init()
Code: Select all
timevec=new Vector(10)
timevec.indgen(1000)
celsiusvec.play(&celsius, timevec,1)
I'm using Neuron 7.3 on Ubuntu 13.04
Regards.